cancel
Showing results for 
Search instead for 
Did you mean: 

Find several child objects in Keyword Test

SOLVED
Highlighted
Contributor

Find several child objects in Keyword Test

Hello,

I have an object (a login window) containing two childs (OK button, and Cancel button).
Can I test for the existance of both childs in one test? I found the FindChild function but I didn't find how to insert both test in one command.
I think I may need to use script.

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Find several child objects in Keyword Test

It's going to be two commands.  There should be an "Object Exists" operation in Keyword testing where you pass in, as the parameter, the onscreen object you want to make sure exists. 

 

You can also use the FindChild method in keyword tests.

 

But no matter how you do it, you need two commands.  You need to check for each object and then retrieve the results.  There's no single command to say "Check to see if these two buttons exist" that I know of.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

1 REPLY 1
Highlighted
Community Hero

Re: Find several child objects in Keyword Test

It's going to be two commands.  There should be an "Object Exists" operation in Keyword testing where you pass in, as the parameter, the onscreen object you want to make sure exists. 

 

You can also use the FindChild method in keyword tests.

 

But no matter how you do it, you need two commands.  You need to check for each object and then retrieve the results.  There's no single command to say "Check to see if these two buttons exist" that I know of.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

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