2015年4月29日

摘要: classselenium.webdriver.support.expected_conditions.alert_is_presentBases:objectExpect an alert to be present.classselenium.webdriver.support.expected... 阅读全文
posted @ 2015-04-29 22:50 帅胡 阅读(589) 评论(0) 推荐(0) 编辑
摘要: classselenium.webdriver.support.color.Color(red,green,blue,alpha=1)Bases:objectColor conversion support classExample:from selenium.webdriver.support.c... 阅读全文
posted @ 2015-04-29 22:49 帅胡 阅读(276) 评论(0) 推荐(0) 编辑
摘要: classselenium.webdriver.support.select.Select(webelement)deselect_all()Clear all selected entries. This is only valid when the SELECT supports multipl... 阅读全文
posted @ 2015-04-29 22:48 帅胡 阅读(213) 评论(0) 推荐(0) 编辑
摘要: classselenium.webdriver.remote.webelement.WebElement(parent,id_)Bases:objectRepresents a DOM element.Generally, all interesting operations that intera... 阅读全文
posted @ 2015-04-29 22:46 帅胡 阅读(470) 评论(0) 推荐(0) 编辑
摘要: The WebDriver implementation.classselenium.webdriver.remote.webdriver.WebDriver(command_executor='http://127.0.0.1:4444/wd/hub',desired_capabilities=N... 阅读全文
posted @ 2015-04-29 22:45 帅胡 阅读(478) 评论(0) 推荐(0) 编辑
摘要: classselenium.webdriver.chrome.webdriver.WebDriver(executable_path='chromedriver',port=0,chrome_options=None,service_args=None,desired_capabilities=No... 阅读全文
posted @ 2015-04-29 22:23 帅胡 阅读(810) 评论(0) 推荐(0) 编辑
摘要: classselenium.webdriver.firefox.webdriver.WebDriver(firefox_profile=None,firefox_binary=None,timeout=30,capabilities=None,proxy=None)Bases:selenium.we... 阅读全文
posted @ 2015-04-29 22:21 帅胡 阅读(257) 评论(0) 推荐(0) 编辑
摘要: The Utils methods.selenium.webdriver.common.utils.free_port()Determines a free port using sockets.selenium.webdriver.common.utils.is_connectable(port)... 阅读全文
posted @ 2015-04-29 21:48 帅胡 阅读(316) 评论(0) 推荐(0) 编辑
摘要: The Desired Capabilities implementation.classselenium.webdriver.common.desired_capabilities.DesiredCapabilitiesBases:objectSet of default supported de... 阅读全文
posted @ 2015-04-29 21:45 帅胡 阅读(1433) 评论(0) 推荐(0) 编辑
摘要: These are the attributes which can be used to locate elements. See theLocating Elementschapter for example usages.The By implementation.classselenium.... 阅读全文
posted @ 2015-04-29 21:43 帅胡 阅读(172) 评论(0) 推荐(0) 编辑
摘要: The Keys implementation.classselenium.webdriver.common.keys.KeysBases:objectSet of special keys codes.ADD= u'\ue025'ALT= u'\ue00a'ARROW_DOWN= u'\ue015... 阅读全文
posted @ 2015-04-29 21:41 帅胡 阅读(341) 评论(0) 推荐(0) 编辑
摘要: The Alert implementation.classselenium.webdriver.common.alert.Alert(driver)Bases:objectAllows to work with alerts.Use this class to interact with aler... 阅读全文
posted @ 2015-04-29 21:40 帅胡 阅读(202) 评论(0) 推荐(0) 编辑
摘要: The ActionChains implementation,classselenium.webdriver.common.action_chains.ActionChains(driver)Bases:objectActionChains are a way to automate low le... 阅读全文
posted @ 2015-04-29 21:39 帅胡 阅读(399) 评论(0) 推荐(0) 编辑
摘要: Exceptions that may happen in all the webdriver code.exceptionselenium.common.exceptions.ElementNotSelectableException(msg=None,screen=None,stacktrace... 阅读全文
posted @ 2015-04-29 21:34 帅胡 阅读(715) 评论(0) 推荐(0) 编辑
摘要: The API definitions in this chapter shows the absolute location of classes. However the recommended import style is as given below:from selenium impor... 阅读全文
posted @ 2015-04-29 21:31 帅胡 阅读(173) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-04-29 21:24 帅胡 阅读(0) 评论(0) 推荐(0) 编辑

导航