I'm facing this problem while automating my
application..its a web based apps..
In my application there are few webtables are displaying in
the page.In the different cells there are links and action
buttons.Problem is there is link in different web tables
corresponding to one name.Hence the properties of the
objects(say a link) are same except the x,y co ordinate of
the object.So my script is not able to distinguish between
the two links present in different cells of web tables with
same name.Kindly help on this..
Answers were Sorted based on User's Feedback
Answer / feroz louis
Since your web tables are having unique names, you can use
the GetCellData(rowId, columnId) method to get the text you
are looking for and compare with the actual. If the string
is also same then you can use the ChildItem (Row, Column,
MicClass, Index) method of the webtable to get the exact
item you are looking for and work with that.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / dvenkatesh
you can use method like
childitem(webTableRowNo,WebTableColumnNo,"Link",indexValue)
for specific 'cell' of webTable we have its row
number,column number and index value which always begins
with 0 so the complete operation is like...
browser("creationtime:=0").page("title;=.*").webtable
("name:=","column names:=").childitem
(rowNo,columnNo,"Link",index).click
| Is This Answer Correct ? | 0 Yes | 0 No |
7. Given scenario is like this: One Web table is there and you have to search and retrieve a cell data which is equal to the given number say:123. Assume you have given with the column name/id of the table where the number may exist. So now you have to go to the given column and search for the number 123 and retrieve it along with the row number of it.
Write a user defined function to count the no. of buttons existed in a webpage ? i dont want to use descriptive.create ()
How many types of object repository in qtp?
How to compare 2 excel files using QTP? How to compare 2 PDF files using QTP?
difference between recording methods and recording modes in QTP
Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link
Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?
how to count the word "IS" is repeated in the application using DP
3 Answers DST Global Solutions,
Plz Explain AUTOMATION REFERENCE MODEL?
Explain the keyword createobject with an example.
How do we edit the script in QTP. Anybody can explain in detail..Thanks in advacne...
what is the main process in QTP?