Reputation: 1035
Hi guys I have a problem with protractor. It cannot find the element I want to manipulate.
In the picture above, the element inside the small red rectangle box is the attribute I use in my locator. When I ran protractor it gives an error saying it cannot find the element. So I console a getOuterHtml and this is what it displayed.
In the getOuterHtml() results the qa-rubric-optionInputTitle is can no longer be found. Can anybody explain to me why this happened?
Upvotes: 0
Views: 396
Reputation: 514
Sometimes the browser needs to wait a little bit before an element becomes target-able (Since selinium is so fast!),I usually put in a browser.sleep(1000) in the protractor code and that usually sorts out the problem.
Upvotes: 0