试图使用Selenium通过python单击单选按钮

问题描述 投票:0回答:1

我正在尝试使用硒单击按钮,我已附加了html代码的图像。

到目前为止,我有:

  browser.find_element_by_css_selector("input[type='radio'][id='SF_SP2_01']").click()

但出现错误提示:

   selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable

enter image description here

python selenium
1个回答
0
投票
但是,如果这样做没有帮助,则您尝试单击的元素可能与您当前所在的框架不在同一框架中。检查html中是否有任何
© www.soinside.com 2019 - 2024. All rights reserved.