我正在尝试使用Selenium脚本单击网页上的按钮,但使用此行却给我以下错误:driver.find_element_by_class_name('btn-primary').click()错误如下:ElementNotInteractableException: Message: Element <button class="btn-primary btn-text sort-filter-clear-button" type="button"> could not be scrolled into view按钮元素的HTML:<button type="submit" class="btn-primary btn-action bookButton" id="bookButton" data-track="FLT.RD.Book.Bottom"><span class="btn-label">Continue Booking</span></button>
添加回答
举报
0/150
提交
取消