I've searched through stack overflow and while there are answers to "org.openqa.selenium.NoSuchElementException: Unable to locate element" they don't seem to fit in my situation. I am very new to coding and using selenium. So any help you can provide would be awesome. Thank you in advance.
I am getting this error when I am finding an element which is a user name text box.
When I inspect the element with firepath I get the following;
input id="txt_658_4692" class="form-control ggo-field" required="1" data-bv-notempty-message="The field is required." data-bv-stringlength-message="255 characters to be removed." data-fv-stringlength="true" maxlength="255" data-ggo-maxlength="255" name="txt_658_4692" data-ggo-fieldtype="TEXT" data-ggo-fieldidentifier="APPLICANT_USERNAME" data-ggo-token="de6cbe2fe346a847ab301bd6147c0374" value="" type="text"/
So somewhere in that string of crazy is supposed to be the element that I can target to then send keys to log in.
I've tried using
driver.findElement(By.Id())
driver.findElement(By.xpath())
driver.findElement(By.cssSelector())
driver.findElement(By.name())
This is the portion of code that I am getting an error on
WebElement usernameTextbox = driver.findElement(By.xpath(".//*[@id='txt_658_4692']"));
usernameTextbox.sendKeys("russelltest1");
Any help or suggestions would be great.
Thank you.