我在 Chrome 上检查时有以下代码。
<span id="button-1111-btnInnerEl" class="x-btn-inner x-btn-inner-center" unselectable="on" style="">New Email</span>
我需要点击标签“新电子邮件”,但是应该如何在 Selenium 中调用它(我使用的是 Python)。
def CreateMail():
EmailButton="//*[contains(text(),'New Email')]"
driver.find_elements_by_xpath(EmailButton) // there is no method to enable click.
driver.find_element_by_id("button-1111-btnInnerEl").click()
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句