public static JavascriptExecutor jse;
声明一个js
public LogoutWebElements(WebDriver driver){
LogoutWebElements.driver = driver;
jse = (JavascriptExecutor)driver;
}
jse.executeScript("arguments[0].click()", xxxxx);
public static JavascriptExecutor jse;
声明一个js
public LogoutWebElements(WebDriver driver){
LogoutWebElements.driver = driver;
jse = (JavascriptExecutor)driver;
}
jse.executeScript("arguments[0].click()", xxxxx);