none
Website Automation (Error with: Document.documentElement.getElementsByClassName) RRS feed

  • Question

  • I am at the last phase of my automation with creating accounts in a file storage system online. 

    I am trying to grab the class and not the type. I can call the type 'input' but it takes forever. I would like to call the 'control' class. Then input the value for firstName. 

    Here is a snippet I am using to find it, it is returning NULL. I am guessing due to it finding the first control class. Any advice would be helpful!

    $CUserFirst = $ie.Document.Document.documentElement.getElementsByClassName('controls') | Where-Object {$_.name -eq "firstName"}
    $CUserFirst.value = $UsersFirstName


    Tuesday, November 17, 2015 5:12 PM

All replies