| || |
How to deal with GUI Test Objects using Robotj
I have some clarifications needed regarding Robotj
My app is a banking application.
I have scenario where some rows are created in HTML Table
Now these are dynamic rows and they get created.
There are situations where App shows only 2 records while recording.
Due to some changes in the App some more rows get added.
Now if i play back how to deal with these rows which Robotj does not have any idea when recorded.
The method i am following is get mappable children of the HTML table get all the pls see the snippet of my code and advice me any better ways
TestObject link = property.getMappableChildren();
Hashtable atable = link[i].getProperties();
Iterator iter1 = atable1.keySet().iterator();
Object aKey1 = iter1.next();
Object aValue1 = "";
tmpstr = aKey1.toString().trim();
I itereate through each and every object and find the required object.
Is there any simple way? other than this?.
Re: How to deal with GUI Test Objects using Robotj
I'm not sure why you need the hash tables unless you're wanting to examine all the properties. If you're just trying to extract the links, all you need to do is loop through link and look for objects of .getProperty .class = Html.A . The following post explains it. Please search the archives as there are several similar topics already.
[ 12-11-2003, 07:26 AM: Message edited by: cyblue ]