Selenium WebDriver在线程“main”org.openqa.selenium.ElementNotInteractableException中抛出异常测试场景:试图捕获和测试Gmail登录。当前产出:Mozilla实例打开。输入用户名,但WebDriver代码没有输入密码。System.setProperty("webdriver.gecko.driver", "C:\\Users\\Ruchi\\workspace2\\SeleniumTest\\jar\\geckodriver-v0.17.0-win64\\geckodriver.exe");FirefoxDriver varDriver=new FirefoxDriver();varDriver.get("http://gmail.com"); WebElement webElem= varDriver.findElement(By.id("identifierId"));webElem.sendKeys("error59878@gmail.com");WebElement nextButton=varDriver.findElement(By.id("identifierNext"));nextButton.click();varDriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);WebElement wePass=varDriver.findElement(By.cssSelector(".rFrNMe.P7gl3b.sdJrJc.Tyc9J"));wePass.sendKeys("test1");
添加回答
举报
0/150
提交
取消