📜  用于登录的硒代码 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:22.529000             🧑  作者: Mango

代码示例2
1
2
3
4
driver.findElement(By.id(“password”));
WebElement password=driver.findElement(By.id(“password”));
driver.findElement(By.xpath(“//button[text()=’Sign in’]”));
WebElement login= driver.findElement(By.xpath(“//button[text()=’Sign in’]”));