TestProject Forum

Is there a way to test whether a button is active or not?

Hello everyone,

I should run a test (Android and iOS) where I verify that a button is not active. I was thinking to create an action “Is the button visible?” to be triggered only with a condition such that its “enabled” value is “False”.

I’ve tried adding the condition, but then the result doesn’t change when the button activates (when it should skip it, since it no longer meets the condition I placed on that action). Where am I going wrong and how can I make this an active and persistent condition?

use the get attribute, Then depending on how developers have disabled it, will have status like,
enabled, or active or selected.

Then can add validiation onto the get attribute