I've been trying to get selenium to input my username and password into a site and have seen various methods mentioned on other forums none of which have worked for me. Here is what is returned upon inspecting the "username" field on the site:
<input type="text" id="curruserelt" value="" aria-hidden="true" style="display: none;" class="">
I tried using the ID method but to no avail, I am trying this xpath method:
username = "ajusingt121"
element_enter = findElement(By.xpath("//*[@id="curruserelt"]")).sendKeys(username);
element_enter.findElement(By.xpath("/html/body/input[1]")).sendKeys(username);
But for whatever reason it keeps returning invalid syntax error at the xpath id part.
Whats the best way to tackle this type of form and input data?