I have a problem writing a Selenium test to test my application. What I want to check is when the user enters the correct username / password, the correct page is displayed and the user is logged in.
The main problem is that my login form is created as an AngularJS directive (I have two different login pages, and this directive is reused in both places), and Selenium does not seem to be able to see the elements of this markup created by the directive. Most importantly, the tests took place on this page before I replaced the regular markup with the generated directive.
So it seems that Selenium cannot see the html elements that are generated by the directive.
Any suggestion how I could overcome this problem? Except, of course, returning this change introducing a directive :)
source
share