Posts: 6
Threads: 4
Joined: Oct 2010
Reputation:
0
01-05-2012, 05:21 PM
Hi everybody,
My Scenario is as follows:
I have got a webpage which has got nearly 240 webtables. If the webtable count is going to be static, i would have added those into object repository. But, here, it changes daily. It may increase or decrease.
Each webtable has got few webelements and one image icon. I have verify the content of webelement and then click its image to open required page.
How can i do these without adding webtables in object Repository.
If there is any way of adding webtables dynamically to object repository. please suggest that also.
Thanks in advance,
Ramkumar A D
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
01-05-2012, 05:58 PM
Hi,
Use descriptive programing for this.
Count the number of webtables in a webpage navigate either to all webtable or to the specific according to ur need and perform the action.
Hope this help you.
Regards,
Sankalp
Posts: 323
Threads: 8
Joined: Nov 2011
Reputation:
4
01-06-2012, 03:47 PM
Get the count of the webtables by using GetROProperty and assign the value to variable and use it any where in the script as per your requirement
Posts: 3
Threads: 0
Joined: Jan 2012
Reputation:
0
01-07-2012, 03:05 AM
HI,
Its not a good idea to add the web tables to the OR as its dynamic in nature.
You need to use descriptive programming with regular expression to define the webtable. In your case you should use descriptive programming for "EditCollection" object and then re-run it. You should not get the error again.
Thanks
Akankhya
Posts: 33
Threads: 2
Joined: Oct 2008
Reputation:
0
11-12-2013, 08:27 PM
ramkumarad
My understanding:
you have a webpage that has over 200 webtables.
the number of webtables changes daily.
names of the webtables changes daily.
Questions based on any one day:
Are the names of the frames constant?
How many frames are there?
Are all the tables in the same frame?
Within the same frame, what are the unique values, name, html id, outerhtml, etc? (on any one day)
Do all the tables have an image/link? (over 200?)
Is the image/link that you have to click constant or do the names/hrefs change on a daily basis?
In your for/next loop, you are starting from 6 rather than 0(zero) why? just curious.
We can easily find all the tables within a frame. After that, the question is what is a unique element within the tables, number of rows, number of columns, outerhtml, etc or a combination of things?
Parke
Posts: 91
Threads: 19
Joined: May 2011
Reputation:
0
12-30-2013, 07:38 PM
Hi,
correct me i am wrong. Since you have more than 240 webtables you need to check from the first table ryt?
in the application somewhere it will show the tables count with page numbers ryt? as wells as with next and previous icons as buttons?
try to identify the page number and assign it to table count. then take the row count in each table and check for the required condition for example if the required condition satisfied in 5 row of 17page means do the mentioned action and exit the row count loop and page navigation loop.
got it? if no means mail me ill explain you.