Results 1 to 2 of 2

Thread: Automating webbrowser control

  1. #1

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489

    Automating webbrowser control

    Hi people. I've done many projects automating the webbrowser control. Speeding up the process of filling certain forms with recognized fields was quite easy.

    Now I'm doing some tests over the ticketmaster page. This page for example:
    http://www.ticketmaster.com/event/11...&minorcatid=60

    This form shows the Qty of tickets to purchase for that particular concert. I'd like to be able to change the ticket amount in the first dropdown. I currently get this achieved by using mouseclicks and sendkeys which is a bit annoying.

    You will notice that these fields ain't in flash (which would have prevented me right away from updating it by code)
    By looking at the source of this webpage, you see the name of the field is "w_ext_qty" followed by ".WeirdLongRandomCodeContainingNumbersAndLetters".

    I think it's that suffix part that messes things up, as
    Code:
    WebBrowser1.item("q_ext_qty")(2).Selected = True
    ...would usually get the job done.

    No luck by adding this suffix alphanumeric code to "w_ext_qty." and trying to populate it.

    Any help greatly appreciated. I might be looking in doing it by http requests later on, but for now I'd be glad to have it running under a vb6 webbrowser.

    Thank you for *any* thougths !
    Chris

  2. #2

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489

    Re: Automating webbrowser control

    I searched and tried many different approaches, all failed. There seems to be some javacripts (or something) interacting here (I'm no expert).

    So I've decided to try it out by HttpRequests. I was able to submit the form with a quantity of 2 and landed on the next page. I could say "mission accomplished" for now.

    I'll keep the thread alive for a little while as a method via the webbrowser could still be interesting for me, in case I fail using httprequests until the end of the app lifecycle.

    My concern here is that I may want to take the cookies I got from HttpRequest'ing and "inject" it (somehow) in the webbrowser on the same form. It would be easier for me to continue other steps/pages afterward. I have no idea if this can done tho, and will prolly be asked in another thread.

    Thanks for reading.
    Chris

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