您能否讓我知道我們如何使用硒註銷Chrome瀏覽器?Facebook登出腳本
e.g
public class AJ {
public static void main(String[] args) {
WebDriver driver = new ChromeDriver();
driver.get("http://facebook.com");
WebElement element=driver.findElement(By.name("email"));
element.sendKeys("[email protected]");
element=driver.findElement(By.name("pass"));
element.sendKeys("password");
element.submit();