hai all.iam chandu..please let me know how to test a link
in QTP when it is changing at run time..and what property
we should take while we r using descriptive programming for
a link..
Answers were Sorted based on User's Feedback
Answer / sangee
U can get the value by using Object Spy and get the properties
which ever u want.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / chaitanyakumar.chivukula
we can test the frequently changed object like links or
buttons...etc with the help of DP...
we can test dynamicly changed links with help of DP with
Reg.Exp or creation of time.
Set link = Description.Create()
link("innertext").Value = "xxx"
link("innertext").Reg.Exp = "xxx"
Browser(Broswer).page(Page).weblink(link).click
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / pravati
set obj=Description.create()
obj("micclass").value="Link"
set linkobj=Browser("micclass:=Browser").page("micclass:=page").childobjects(obj)
for i=0 to linkobj.count -1
x=linkobj(i).Getroproperty("name")
if trim(x)="forgotten password?" then
linkobj(i).click
exit for
end if
next
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the main difference between function and sub-procedure?
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?
which one is more secure vb script or java script ??????? or both are same ??????
Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
How many types of operators are available in the vbscript language?
What is the difference between vbscript and vba?
how to organize files in object repository of qtp
what does create object actually do when you call it in vbscript?
about vb scripting programs this type of all question& answers
can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.
how to write code: to check whether the window of an Application Under Test exist or not . plz give with example