摘要:
/** * 判断元素是否存在 * * @param driver * @param by * @return */ public static boolean isElementPresent(WebDriver driver, By by) { try { driver.findElement(by); return true; } catch (NoSuchElementException e) { return false; ... 阅读全文
摘要:
public static FirefoxDriver FFSetting() { System.setProperty("webdriver.firefox.bin", "D:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"); return new FirefoxDriver(); } public static InternetExplorerDriver IESetting() { System.setProperty("webdriver... 阅读全文