How to check a list of buttons with assert in a function

Asked by Sreelekshmi on 2019-01-31

I need to check 5 buttons in my UI for tooltip . Need to verify that no tooltip for any of the button . how to write a single function for all buttons with assert for each button .Can we avoid writing if exists and hover for each button .

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2019-01-31
Last reply:
2019-01-31
RaiMan (raimund-hocke) said : #1

Seems you are using the SikuliX-IDE.

It is just Python scripting.

Make a
def checkButton()
That does what is needed for each button.

Then call this function for each botton e.g. in a loop.

Can you help with this problem?

Provide an answer of your own, or ask Sreelekshmi for more information if necessary.

To post a message you must log in.