Find several child objects in Keyword Test
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
