Radio button does not get clicked in Selenium / Python

前端 未结 2 525
悲哀的现实
悲哀的现实 2021-01-15 05:56

Folks, this is driving me crazy. I have snippets like the following

2条回答
  •  醉梦人生
    2021-01-15 06:31

    Try this,

    driver.execute_script("arguments[0].checked = true;",element)
    

    You can also try by sending ENTER Key to the element.

提交回复
热议问题