Firefox driver is not entering a value for Firstname
field.
I'm trying the following:
driver.findElement(By.xpath(//*[@id=\JNHGYHG\"]")).sendsKeys("Hello");
Can someone help me with this?
Firefox driver is not entering a value for Firstname
field.
I'm trying the following:
driver.findElement(By.xpath(//*[@id=\JNHGYHG\"]")).sendsKeys("Hello");
Can someone help me with this?
Try this and see any difference.
driver.findElement(By.xpath("//*[@id='JNHGYHG']")).sendKeys("Hello");
As mentioned in your code trial there is an error within the Locator Strategy you have used.
You can use either of the following solutions:
Using id attribute:
driver.findElement(By.id("JNHGYHG")).sendKeys("Hello");
Using cssSelector:
driver.findElement(By.cssSelector("#JNHGYHG")).sendKeys("Hello");
Using xpath (option A):
driver.findElement(By.xpath("//*[@id='JNHGYHG']")).sendKeys("Hello");
Using xpath (option B):
driver.findElement(By.xpath("//*[@id=\"JNHGYHG\"]")).sendKeys("Hello");