Karias Bolster
Karias Bolster

Reputation: 1035

Protractor Can't Find Element

Hi guys I have a problem with protractor. It cannot find the element I want to manipulate. enter image description here

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.

enter image description here

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

Answers (1)

nagrom97
nagrom97

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

Related Questions