Exceptions that may happen in all the webdriver code. exception selenium.common.exceptions.ElementNotSelectableException(msg=None, screen=None, stacktrace=None) Bases: selenium.common.exceptions.InvalidElementStateException Thrown when trying to sele…
(转载) 1.3 打开测试页面 对页面对测试,首先要打开被测试页面的地址(如:http://www.google.com),web driver 提供的get方法可以打开一个页面: // And now use thedriver to visit Google driver.get("http://www.google.com"); 1.4 例子 package org.openqa.selenium.example; import org.openqa.selenium.By;…