Forum Discussion
Marsha_R
Champion Level 3
8 years agoIt will be something like this
If button.exists then log.message("Pass") else log.message("Fail")
However, the object could be different (not always a button), the state could be different (not always exists), and you didn't tell us which scripting language. Hard to be more precise without more information.
There are also many events that are already found in the log so some of those might work for you as well.
msap
8 years agoFrequent Contributor
Thanks .I am using Java scripting. other than if else statement, what can I use. I tried to use Log.message. It only prints the message does not specify whether its passed or fail.