【发布时间】:2022-02-11 05:16:34
【问题描述】:
您好,我想点击这个按钮,但我不知道如何找到它,它没有明确的 NAME 或 ID,还有,模拟鼠标点击的代码是什么?
这是 HTML:
<button class="aOOlW bIiDR " tabindex="0">Accept All</button>
这是代码的一部分:
auth = driver.find_element(By.CLASS_NAME, 'aOOlW bIiDR ')
auth.send_mouse(Keys.LEFT)
如您所见,send_mouse(Keys.LEFT) 不起作用。
【问题讨论】:
标签: python selenium xpath css-selectors click