Selenium IDE does not execute angular ng-click code

I just started using the Selenium IDE, I press a button that loads the view and c-in this view li , and li has ng-click='doSomething(myFunc)' , which runs the function that loads the content.

code: <li ng-repeat="a in [1,2,3,4,5]" ng-click(myFunc)>{{a}}</li>

When you click on everything works fine. With Selenium, it appears as captured, but wen I test I get this error

[info] Executing: |sendKeys | id=jsonform-1-elt-0.name | Simo | (SIMO is the name entered)

[error] Element id=jsonform-1-elt-0.name not found

NOTE: my form is built from a Json schema using https://github.com/Simomultimedia/jsonform

Any suggestions on what could lead to selenium not being executed?

+4
source share
1 answer

Have you tried using a protractor? It was developed specifically for testing endular ends applications (from the angularjs team). https://github.com/angular/protractor

Its like selenium on steroids (uses a webdriver backstage).

0
source

Source: https://habr.com/ru/post/1499803/


All Articles