【发布时间】:2021-06-20 19:08:42
【问题描述】:
我已经尝试使用 driver.find_element_by_id // link_text // 部分链接文本,我应该使用什么来访问这个 href。我得到了没有这样的元素例外。任何帮助将不胜感激 tysm。
<a href="../s-reminderNotice.asp?fname=b%2D3c%2DpLessonBooking%2Easp%3Flimit%3Dpl"
class="sidelinkbold" target="mainFrame" onmouseover="
window.status='Practical Training Booking'; return true" onmouseout="window.status=' ';
return true">Booking without Fixed Instructor</a>
已解决;元素在一个框架中;必须切换框架以访问元素
【问题讨论】:
-
你遇到了什么异常?
-
无此类元素异常;我将其编辑到帖子中