Active / inactive web buttons - do this do that
I have a test on a web page that depending on input a "Continue" button will be active or inactive. And if the button is active then I want the script to perform a set of tasks, but if the button is inactive I want it to log out.
What I am thinking is using an "IF" statement to say if the button is active, then continue, otherwise logout of the web page.
I was trying to use the Exist, but the button exist no matter what, it could either be available or greyed out.
This is what I have so far....
If Browser("Browser").Page("Victoria Insurance").WebButton("Continue"). "**BLANK**" Then
Browser("Browser").Page("Victoria Insurance").WebEdit("amount").Set DataTable("Amount", dtGlobalSheet)
The "BLANK" is what I am having a problem with...don't know what to put there.
Re: Active / inactive web buttons - do this do tha