Selenium click event does not trigger angularjs ng-click

后端 未结 6 1362
眼角桃花
眼角桃花 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:18

    Try putting in wait's in between your actions because Selenium doesn't know how angular loads and works. Protractor was created right for the purpose of handling angular web pages, which is a wrapper over selenium webdriver. However if you still want to test angularjs with Selenium then waiting for few seconds implicitly or fluent wait's between each action should help you with your need and accomplish what you intend to. Hope it helps.

提交回复
热议问题