Software Testing Learning Hub

Button gets disabled and doesnot get clicked

0
0

I am using Selenium IDE to make a automation scripts. In my code there is a page where when i select some options, the ‘Next’ button gets disabled for a while. I have used a ‘pause’ statement for the time when the button is disabled but when i re-run my scripts in Selenium IDE, the ‘Next’ button does not get clicked most of the time. Does anyone have any solution for this sort of a problem?

  • You must to post comments
0
0

There are two options which you can use

  1. waitforelementpresent
  2. waitforelementnotpresent

in this way you can wait until button get present with the state of the button. ( waitforvisible)

  • You must to post comments
Showing 1 result
Your Answer
Guest Author
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website
Body*