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
How do you open adobe acrobat file in QTP and do some testing on that file ?
hi, FOR 3+ QTP INTERVIEW, FOR EXAMPLE WE PUT ONLINE BANKING SYSTEM PROJECT IN OUR RESUME, IN PROJECT MANAGER ROUND...WHAT R THE MAJOR QUESTIONS ARE ASKED IN P.M? PLS TELL ME ATLEAST 10 QUESTIONS?.....AND IF POSSIBLE POST ANSWERS ALSO....
What is the meaning Work bench?
Is it possible to change the values of analog recording?
How to Test the mainframe application?
What is debugging? How you debug your script?
Please guide me release notes of Automation once scripts are completed
how to convert 100 into hundred repees only and viceversa
What are the benefits of qtp?
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
How to record application running on the Virtual machine?
Explain qtp(quick test professional)?
Name the properties you would use for identifying a browser and page when using descriptive programming?
What is the parameterization? Give one example?
What are the types of data tables in qtp?