on-internet
← Community

Selenium WebDriver how to insert text into field

Stack Overflow ·

I'm designing tests in Selenium WebDriver Framwework and I would like to insert text into fields in login box. Here is a website www.fitandjump-widzew.pl After click on "Zaloguj" button in top right corner, Login box appears. I would like to insert text into E-mail inputfield. Here is my code: WebElement emailInput = driver.findElement(By.xpath("//[@id=\"inputFields\"]")); emailInput.click(); emailInput.sendKeys("[email protected]"); After execution I get this error: org.openqa.selenium.ElementNotVisibleException: element not visible Can anyone help me to insert text into this field? P

Comments

Sign in or sign up to comment and upvote.

No comments yet.