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
in qtp 3 sheets is there in data table like global, action1, action2. I want to check the rows and columns in action2. how can check using script?
What are the different kinds of test steps?
How to find a window is minimized or not
How will you report the bug and explain the defect tracking sheet you handled?
Which features or drawbacks of QTP lead to the upgrade for a newer version?
Explain the qtp test phases.
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
When to use shared and local object repository?
iam have done mba(finance)in 2008. in 2008 one reputed consultancy came off campus interview our institution. i got job as "manual test engineer". now iam working as "manual testing engineer". now my problem is when iam going interview the interviewer asking like " ur mba gradute how can u get job in test engineer." this question i have faced every interview. iam explaining how iam getting job. but they are not trust me". pls tell me answer how i am giving relavent ans.. this is my mail id y.ramana84@gmail.com
How can I import environment from a file on disk?
How to find the name of the machine where you are running your automation scripts in qtp?
Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
Explain how you can replace string in qtp?
What is the file extension of the code file and object repository file in QTP?