Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
190 views
by The go-to Tester (473 points)
edited by
Many time on web pages , some element are disables and they get activate only after some time or after some action. And if script goes to find such disable element then the script fails. How to handle such scenario?

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)
In that case, you first have to perform that action which enables that element. After performing the action, you can use EplicitWait to wait till element clickable.
 
Once element is clickable, you can perform your action with it. Hope that helps.
 
In case your element is created using JQuery, it requires different treatment. Reply to this comment with the behaviour of your element.
by
yeah....will try your solution for implicit wait
by The go-to Tester (181 points)
I think you should try explicit wait. Implicit wait may not work to check if an element is clickable.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...