none
Automate website

    Question

  • Hi,

    I am trying to automate a website.

    I have automated half of the website,but now i need to insert text into two textboxes with dynamically assigned ID's

    I found that there is no classes defined, the only thing i can use is the description next to the textbox.

    ID=Content.101        ID=Content.102
    Text:User            Textbox1


    ID=Content.103        ID=Content.104
    Text:Email            Textbox2

    My question is:

    How do i get the ID number where text is User or Email, then use ID number + 1 To set "textbox ID" in focus.

    I am trying to accomplish this via

    Powershell -- document.GetElementsByID

    I hope you guys can help.

    Thanks in advance

    Br

    Michael

    Thursday, June 14, 2018 10:27 AM

All replies

  • There is no ID number.  The HTML you posted is not from a browser.  It looks like it is some odd server side code.

    This is not  web site forum.  It is for administrative scripting.  Post your issues in a web forum for your web server brand.


    \_(ツ)_/

    Thursday, June 14, 2018 11:05 AM
    Moderator