selenium用法 (python)

滑动到指定元素位置

browser.find_element_by_xpath("//font[text()='资产管理部经办人'][1]").location_once_scrolled_into_view

通过id包含某个字符串定位元素

curBrowser.find_element_by_xpath("//iframe[contains(@id,'tmpid')]"))
 
posted @ 2017-05-17 16:14  xqnq2007  阅读(198)  评论(0)    收藏  举报