摘要:
classselenium.webdriver.support.expected_conditions.alert_is_presentBases:objectExpect an alert to be present.classselenium.webdriver.support.expected... 阅读全文
摘要:
classselenium.webdriver.support.color.Color(red,green,blue,alpha=1)Bases:objectColor conversion support classExample:from selenium.webdriver.support.c... 阅读全文
摘要:
classselenium.webdriver.support.select.Select(webelement)deselect_all()Clear all selected entries. This is only valid when the SELECT supports multipl... 阅读全文
摘要:
classselenium.webdriver.remote.webelement.WebElement(parent,id_)Bases:objectRepresents a DOM element.Generally, all interesting operations that intera... 阅读全文
摘要:
The WebDriver implementation.classselenium.webdriver.remote.webdriver.WebDriver(command_executor='http://127.0.0.1:4444/wd/hub',desired_capabilities=N... 阅读全文
摘要:
classselenium.webdriver.chrome.webdriver.WebDriver(executable_path='chromedriver',port=0,chrome_options=None,service_args=None,desired_capabilities=No... 阅读全文
摘要:
classselenium.webdriver.firefox.webdriver.WebDriver(firefox_profile=None,firefox_binary=None,timeout=30,capabilities=None,proxy=None)Bases:selenium.we... 阅读全文
摘要:
The Utils methods.selenium.webdriver.common.utils.free_port()Determines a free port using sockets.selenium.webdriver.common.utils.is_connectable(port)... 阅读全文
摘要:
The Desired Capabilities implementation.classselenium.webdriver.common.desired_capabilities.DesiredCapabilitiesBases:objectSet of default supported de... 阅读全文
摘要:
These are the attributes which can be used to locate elements. See theLocating Elementschapter for example usages.The By implementation.classselenium.... 阅读全文
摘要:
The Keys implementation.classselenium.webdriver.common.keys.KeysBases:objectSet of special keys codes.ADD= u'\ue025'ALT= u'\ue00a'ARROW_DOWN= u'\ue015... 阅读全文
摘要:
The Alert implementation.classselenium.webdriver.common.alert.Alert(driver)Bases:objectAllows to work with alerts.Use this class to interact with aler... 阅读全文
摘要:
The ActionChains implementation,classselenium.webdriver.common.action_chains.ActionChains(driver)Bases:objectActionChains are a way to automate low le... 阅读全文
摘要:
Exceptions that may happen in all the webdriver code.exceptionselenium.common.exceptions.ElementNotSelectableException(msg=None,screen=None,stacktrace... 阅读全文
摘要:
The API definitions in this chapter shows the absolute location of classes. However the recommended import style is as given below:from selenium impor... 阅读全文