在pythonselenium中选择元素

在pythonselenium中选择元素,第1张

在pythonselenium中选择元素

为了使用户名字段可见,您需要将光标移动到登录链接:

....driver.get('http://www.etoro.com/au')action = webdriver.ActionChains(driver)action.move_to_element(driver.find_element_by_xpath(    './/a[@]/span[text()="Login"]'))action.perform()# TODO Need to wait until the `inputUsername` field is visibleelem = driver.find_element_by_class_name('inputUsername')...


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5086588.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-11-16
下一篇2022-11-16

发表评论

登录后才能评论

评论列表(0条)

    保存