1
https://www.mykplan.com/participantsecure_net/TermsAndConditions.aspx 我正在通过id/xpath/name查找,他们都失败了接受按钮。这里是我的最新努力为什么硒webdriver找不到我的元素
driver.find_element_by_xpath('//*[@id="Accept"]').click()
直接从Chrome网上应用工具
感谢您阅读清晰易读的答案! – gallly
嗯,所以我做了你说的,但它没有工作,我没有在切换帧期间出现错误,但我仍然无法找到接受按钮的元素 – gallly
如果您打开网络驱动程序的框架子页面(.../TermsAndConditionsBottom.aspx)和无switch_to_frame?如果是,则切换到一个帧失败。 –