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


Please Help Members By Posting Answers For Below Questions

Is text area check point supports for web applications?

531


what the difference between shared repository and per action repository?

550


Explain the Different types of QTP test assets and their extensions?

603


What are the types of object repositories? Which one is you are using?

628


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.

2099






How to handle the exceptions using recovery secnario manager in quicktest professional?

632


What is the difference between a Function and Action in QTP?

585


Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?

1858


What are the ways you can synchronize?

581


How can you write the scripts that operate on different objects depending on run-time information?

2114


What is system testing and what are the different types of tests you perform in system testing?

597


What are the different attribute used with regular expression?

533


How to use setroproperty?

568


When Recovery scenario actually starts while testing the application?

1544


Explain the features of quick test pro(qtp)?

571