Selenium click event does not trigger angularjs ng-click

后端 未结 6 1356
眼角桃花
眼角桃花 2020-12-16 00:50

I have this page where there is a textbox and there is save button associated with each text box. I need to click on the save button so that it will save the value in text b

6条回答
  •  伪装坚强ぢ
    2020-12-16 01:14

    I faced this issue myself before. Here is how I solved it. Right click on the button -> Go to inspect element -> Copy css selector and store it in a variable

    The code to click the button :

    your_element = your_driver.find_element_by_css_selector(css_selector_variable)
    your_driver.execute_script('arguments[0].click()',your_element)
    

提交回复
热议问题