[英]Selenium Webdriver Gmail Next Button ID?
How can I get in "gmail.com" website when input email after press next button id for selenium web driver? 在按硒Web驱动程序的下一个按钮ID后输入电子邮件时,如何进入“ gmail.com”网站? Does not exist. 不存在。 only exists <div class="ZFr60d CeoRYc"></div>
this. 仅存在<div class="ZFr60d CeoRYc"></div>
。 How can I find ID of next button? 如何找到下一个按钮的ID?
automation Gmail login using selenium webdriver in java in this link answer is id = identifierNext for next button. 在此链接中使用Java中的Selenium Webdriver进行自动化Gmail登录 ,此链接的答案为id = identifierNext(下一步)。 But how can I know it is ID? 但是我怎么知道它是ID?
您也可以使用xpath:
"//span[contains(text(), 'Next')]"
There is an id
attribute for the Next
button. “ Next
按钮有一个id
属性。 You can use xpath
like .//div[@role='button' and @id='identifierNext']
. 您可以使用xpath
类的.//div[@role='button' and @id='identifierNext']
。 Hope it helps. 希望能帮助到你。
这是ID为下一个按钮的html标记:
driver.find_element_by_id("identifierNext").click()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.