首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >python 对象没有属性,?

python 对象没有属性,?

提问于 2019-07-15 17:46:37
回答 1关注 0查看 916

from selenium import webdrive

from selenium.webdriver.common.action_chains import ActionChains

import time

dr = webdriver.Chrome()

#访问百度首页

url= 'http://www.baidu.com'

print("denglu百度" )

dr.get(url)

ele= dr.find_element_by_xpath("//img[@src='http://www.baidu.com/img/bd_logo1.png']")

ActionChains(dr)._context_click(ele)

time.sleep(3)

dr.close()

dr.quit()

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档