Hot answers tagged

1

To work around element not found errors (when you are sure element should be found) you should add waits for element before you actually click on it. But if you do it like this: Wait element to be visible Wait element to be clickable Find and Click element etc It will be ugly. So for example you could do something like this : void Wait(Element) { ...


1

Q.1 Sometimes "click_button" or "choose" (for radio buttons) does not work. Even when an ID/name is clearly shown in the HTML & it'll throw an element not found? Ans - One basic mistaken we might can do is - if we have seen element on page means that will be identified by program/code too. Don't believe only on eyes, Good if we right code considering ...



Only top voted, non community-wiki answers of a minimum length are eligible