hello!python!
摘要: 先列出selenium所有方法,然后挨个使用!说明add_cookieapplication_cachebackcapabilitiesclosecommand_executorcreate_web_elementcurrent_urlcurrent_window_handledelete_all_cookiesdelete_cookiedesired_capabilitieserror_handlerexecuteexecute_async_scriptexecute_scriptfind_elementfind_element_by_class_namefind_element_by_cs 阅读全文
posted @ 2013-09-03 11:04 你坚持了吗 阅读(1419) 评论(0) 推荐(0) 编辑
摘要: 易迅的登录方法,因为页面有很多iframe的内置框架,需要先逐级定位到登录元素所在的iframe才行使用方法switch_to_frame('id-name')from selenium import webdriverfrom selenium.webdriver.common.keys import Keysdriver = webdriver.Chrome()driver.get("http://item.yixun.com/item-712354.html?YTAG=3.21012000")driver.find_element_by_id(&quo 阅读全文
posted @ 2013-09-03 10:53 你坚持了吗 阅读(7014) 评论(0) 推荐(0) 编辑
hello!python!