I have a web page.In that i have two links called "gmail"
and "gmail". Both links are look same.One link is at top of
the page and other link is at bottomn of the page. How the
automation tool can be recognized these link and make to
click the link i want?
Answers were Sorted based on User's Feedback
Answer / uday
Why cant you use index or location property.
By default, index=0 for the first object and index=1 to the
second object.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / kalt
Hi, If you are looking for the solution form selenium, then
you can use the xpath to click on that link.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / mohammad murtuza ali
we have to give a tool tip to identify which link is
redirecting.
by this it is possible
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / shamsher singh
Object repository have details about both link . when e
write test cases we can use these details(properties of the
Object) and recognize the link at run time.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / kamakshya
Using "Index" ordinal identifier
SystemUtil.Run "iexplore.exe","google.com"
Browser("title:=Google").Page("title:=Google").WebEdit
("name:=q").Set "QTP script"
Browser("title:=Google").Page("title:=Google").WebEdit
("name:=q").Submit
Wait(5)
Browser("name:=QTP script - Google Search").Page
("title:=QTP script - Google Search").WebButton
("name:=Search","index:=0").Highlight
wait(5)
Browser("name:=QTP script - Google Search").Page
("title:=QTP script - Google Search").WebButton
("name:=Search","index:=1").Highlight
Important Note: Interchange the index value and run the
test and observe how the ‘Search’ Button is working.
*********************************************
Using ‘Location’ Ordinal Identifier
SystemUtil.Run "iexplore.exe","google.com"
Browser("title:=Google").Page("title:=Google").WebEdit
("name:=q").Set "QTP script"
Browser("title:=Google").Page("title:=Google").WebEdit
("name:=q").Submit
Wait(5)
Browser("name:=QTP script - Google Search").Page
("title:=QTP script - Google Search").WebButton
("name:=Search","Location:=0").Highlight
wait(5)
Browser("name:=QTP script - Google Search").Page
("title:=QTP script - Google Search").WebButton
("name:=Search","Location:=1").Highlight
| Is This Answer Correct ? | 0 Yes | 1 No |
HOW CAN WINRUNNER AND TEST DIRECTOR CONNECTED TO THE DATABASE AND WHAT R THE OPTIONS?
What are the types of testing we cannot do, by using automation tools
What you know about table-driven testing?
what testing activity you may want to automate?
Hello, Is there any source from which i can get any live tutorial or trial of Automation tools?? Also i have a query that is there any certification course or exam available for Automation tools QTP and QC?
what kind of application can be tested in winrunner,load runner,qtp,silktest,test director,rational robo,open sta?
Can we find all links on a web page?
We have a testing assignment that is time-driven. Do you think automated tests are the best solution?
how is the best faculty for Selenium in Hyderabad?
How the object properties will be recognised by the tool If the functions/ statements are written manually?
1.Which functinalities of QTP using in onlinebanking system? 2.in lift which kind of testing you perform? 3.how do you test money is transform from one account to another account in online banking?
WHAT IS TEST SCRIPT AND HOW DO YOU CREATE IT?