Selenium Gmail login password field
问题 I am trying to login Gmail using selenium web driver. The problem I am facing is that I am not able to set the password in the input box. Here is the generated error message: Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: cannot focus element. Here is my code: public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "C:\\chromedriver.exe"); WebDriver driver=new ChromeDriver(); driver.navigate().to("http://www.gmail.com"); driver