cancel
Showing results for 
Search instead for 
Did you mean: 

How to to click an element/button where only if it is visible

SOLVED
Sadeesh
New Contributor

How to to click an element/button where only if it is visible

I'm new to test complete and I need to know how to click an element/button where only if it is visible. I see there are no built-in keywords available for the same. Seems to need to achieve this with the condition strategy. Kindly advise.

1 ACCEPTED SOLUTION

Accepted Solutions
tphillips
Frequent Contributor

Re: How to to click an element/button where only if it is visible

Are you asking for a way to do it from a keyword test? You will need to use the If... Then operation, and you can set the condition to be a code expression. The expression would be something like:
Aliases.App.Window.Button.Visible

 

It is much easier to do it in scripting however.


--------------------
QA Systems Architect

View solution in original post

1 REPLY 1
tphillips
Frequent Contributor

Re: How to to click an element/button where only if it is visible

Are you asking for a way to do it from a keyword test? You will need to use the If... Then operation, and you can set the condition to be a code expression. The expression would be something like:
Aliases.App.Window.Button.Visible

 

It is much easier to do it in scripting however.


--------------------
QA Systems Architect

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors