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 / akshay soni
for a website
bro=""
url=""
set desco=description.create
desco("micclass").value="link"
with browser("title:=give respctive browser title name")
set lis=page("title:=give respctive browser title name").childobjects(desco)
ls=lis.count
for i=0 to lis-1 step 1
x=lis(i).getroproperty("name")
y=lis(i).getroproperty("url")
print(x&" "&y)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is run-time data?
when a test case is written how u test using qtp
how can i pass a "cript"as a parameter in to a function
What is QTP scenario.
Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?
how to find that tools work well with your existing system?
Does Low-level recording capture mouse movements?
Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?
How to find array size in qtp?
In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.
What is clean sweep?
How to record application running on the Virtual machine?
if numbers are always changing write a script for that
Explain types of output values?
PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME