we have a link in a website or webtable How can we record
link in that table or site? link is not static we don't
know exact location of that link? how ? if u know pls give
reply with script also?
Answer Posted / shekhar
If we know the name of the name of that link then u guyes
can follow the below code....
In the above code how are you getting the value of j(i.e
column no). We are supposed to check each and every row &
column.
so I would like to add few lines in the above code,
rowcount=B.P.Webtable().rowcount
colCount=B.P.Webtable().columncount(rowcount)
For i=1 to rowcount
For j=1 to columncount
If B.P.Webtable().ChildItemCount(i,j,"link")<>0 then
set oLink=B.P.Webtable().ChildItem(i,j."link",o)
''oLink.(your desired operation)
y=oLink.GetRoProperty("Name")
If trim(y)= trim("Name of that link") then
oLink.Click
End If
Exit for
End If
Next
Next
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is text area check point supports for web applications?
what the difference between shared repository and per action repository?
Explain the Different types of QTP test assets and their extensions?
What are the types of object repositories? Which one is you are using?
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
How to handle the exceptions using recovery secnario manager in quicktest professional?
What is the difference between a Function and Action in QTP?
Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?
What are the ways you can synchronize?
How can you write the scripts that operate on different objects depending on run-time information?
What is system testing and what are the different types of tests you perform in system testing?
What are the different attribute used with regular expression?
How to use setroproperty?
When Recovery scenario actually starts while testing the application?
Explain the features of quick test pro(qtp)?