1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How To Fill Textboxes in a Chrome window?

Discussion in 'Visual Basic .NET' started by frankweerasinghe, Apr 12, 2013.

  1. frankweerasinghe

    frankweerasinghe Regular Member

    Joined:
    Jun 6, 2011
    Messages:
    434
    Likes Received:
    393
    Location:
    Colombo, Sri Lanka
    I'm not talking about the embedded web kit browser. All I want is open chrome and fill the form. Now I know how to do it with sendkeys but I want to use mouse clicks too. how can I get the X.Y positions of the specific textbox elements on Chrome window?

    Thanks,
    Frank.
     
  2. acotut

    acotut Elite Member

    Joined:
    Dec 1, 2010
    Messages:
    2,294
    Likes Received:
    1,040
    Gender:
    Male
    Home Page:
    As I know,AutoIT haves a function to get the x.y positions.
    Not sure,since i'm not a programmer :D

    But,good luck!
     
    • Thanks Thanks x 1
  3. Herion

    Herion Jr. VIP Jr. VIP Premium Member

    Joined:
    Jul 8, 2012
    Messages:
    288
    Likes Received:
    72
    Eh, I believe the only way is pretty iffy. You'd have to open up chrome, get the window handle, find the x & y through image recognition, or pre-define it.

    As for AutoIT they have a tool for finding x&y coordinates & window information.
    Link: http://www.autoitscript.com/autoit3/docs/intro/au3spy.htm
    Mouse Click Function: http://www.autoitscript.com/autoit3/docs/functions/MouseClick.htm

    Targeting text field elements is a whole different story though, if you can do it well with image recognition techniques, then go ahead, but other than that there is no simple way to go about it unless you're using an embedded browser / IE.