Results 1 to 12 of 12

Thread: Get Value From Web Browser

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    268

    Get Value From Web Browser

    Hi All,

    I Hope i'll have answer for this from here...

    I created a application with a web browser and its working fine only. From the web browser i can browse any web page, from a web page i need to get the value like "How many times i'm pressing the Enter key" or submit button in the web page.

    The web page is not mine, it may a private one, there i want to find out how many times i'm pressing and submittingthe values from the web page.

    For example in "Google" page in the search text box we enter some text then we pressing "Enter" key to search know, i want to find out how many times i'm pressing the Enter key in the google page and also how many times i'm clicking the "Google Search" Button in the google page.

    I hope some have answer for this, let me know the same.

    Thanks in advance.......

  2. #2
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Get Value From Web Browser

    For what purpose is this? Other than trying to prevent detection of site abuse, for what purpose is this? Normally you don't care how many times you submit since what's important is the information returned by the request.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    268

    Re: Get Value From Web Browser

    I need to count my work here form a web page so only i need it...

    Do you have answer for this...

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    268

    Re: Get Value From Web Browser

    I'm doing some online data filling work from that web page i need to fill some text boxes and finally i need to give Submit ot Enter to post my work for each time. from that i need to count how many works done by me daily basis, so only i need to create a application for it....

  5. #5
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Get Value From Web Browser

    Look for an application similar to JMeter, essentially log HTTP traffic between you and the site by setting up a proxy in between.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    268

    Re: Get Value From Web Browser

    Thanks for your reply, but i'm not getting what you saying...

    can i have some code samples for it or any other application format for this....

  7. #7
    Addicted Member _RaJ_'s Avatar
    Join Date
    Apr 2008
    Location
    India!
    Posts
    198

    Re: Get Value From Web Browser

    if u have created ur application just declare a variable as integer

    n each time u press submit........ just add 1 to it simple !!

    in submit event

    SubmitCount = val(SubmitCount) + 1

    thats it.........

    ●════════════════════════════◄►═════════════════════════●
    ___itš bεttεг tΘ bε απ Θρεπ šiππεг, thαπ α ƒαlšε šαiπt___
    ●════════════════════════════◄►═════════════════════════●
    гαj

  8. #8
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Get Value From Web Browser

    Quote Originally Posted by _RaJ_
    if u have created ur application just declare a variable as integer

    n each time u press submit........ just add 1 to it simple !!

    in submit event

    SubmitCount = val(SubmitCount) + 1

    thats it.........
    It's a web page submit button and he doesn't have access to server-side source code. I'm not sure at the moment if client-side DOM can be changed at run-time to insert relevant vbscript/javascript and other page elements to facilitate retrieval of value by VB code.
    Last edited by leinad31; Jun 20th, 2008 at 05:21 AM.

  9. #9
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Get Value From Web Browser

    Quote Originally Posted by sarathi125
    Thanks for your reply, but i'm not getting what you saying...

    can i have some code samples for it or any other application format for this....
    No coding necessary. You'll log requests by setting up a proxy

    http://jakarta.apache.org/jmeter/index.html
    http://jakarta.apache.org/jmeter/use...ep_by_step.pdf

  10. #10

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    268

    Re: Get Value From Web Browser

    Hi in this link there so many jmeter files avial for download, shich one is helpful to me, tel me that and just give me a notes on it how to use it and how to make it with the applications.

    Thanks

  11. #11
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Get Value From Web Browser

    Wait. Do you just need to log the requests you sent out (which can be done with JMeter proxy)? Or do you need to use the values (e.g. count) in your VB6 application?

    If its the second case then I suggest that you keep track of the response instead, as mentioned in post#2, using document complete event of webbrowser control. In document complete event, check if page is the response page to a request submission... if so then increment counter.

  12. #12

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    268

    Re: Get Value From Web Browser

    Hi,

    Ya i need the second thing, if the browser events the document complete event how to check where the value is passing or not. if the same same repeating means need to avoid that know. So let me get some clear idea, i think now you got my point so say some idea for this and let me to complete that one....

    Thanks...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width