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 |
I am new to Test Complete ,can any one suggest me the steps to create/Record and replay a test in Test complete 6....
Tell us can we find all links on a web page?
What are the important operations in database testing?
What are the most popular tools for automation testing?
If testing is done using white box testing,then what is the need of using Black box testing again? I mean when unit testing and Integration testing is done at Coding level, what is the need of testing again at testing level?
What are the challenges using QTP11, QC11 with SAP TAO?
Describe any bug you remember?
Can we prioritize tests in Junit. What is the sequence of execution in Junit?
what types of documents we need to write the nonfuntional test scripts?
worksoft automation tool how do you create process ?
i have recorded a scrip for some window applicaiton(login screen) and i have used browser as IE and i have executed sucessfully that script. and now i want to execute the same scrip in different browsers and i question is wether it the same script will execute in different browsers or not
hi........ i want kniow about automation testing.how to work as automation tester.If we have a software so how to test the software from automation tool like QTP please give me answer in detail or any link thanks