How can we retrieve the links from a web page where links
are dynamically changing(for eg take a online shopping
website) and then we have to click on all the links present
in the webpage and go to the repective pages and again come
back to the first page..
Answer Posted / vikas pokharkar
When the links are dynamically changing , you can not use
the name of the link to recognize the object since its
changing frequently . Instead use the properties of link
object which are constant . For.e.g. href
So if you are using object repository - Go to OR,select the
link object,click on "Add/Remove" . Uncheck the "name"
property. Check the "href" property . Save the changes . So
the object will be recognized by its href rather than
name .
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between qtp and selenium?
Hi, While recording a Jave based web application, its recording all my actions and the objects.And I have 5 WebEdit objects on the page and all are recorded. But while execution, at the 2 WebEdit object, its entering the value into the object (Its making a call to the AJAX, matching the value), when the control get out of this object the value is erased or cleared. Could anyone please help. I have recoreded 5 more scenarios where WebEdit is in the picture on different webpages and all are working fine. Here is my Script: Browser("Sign In").Page("Matching Workbench_3").WebEdit ("locationLookup").Set "0320 - SEATTLE-KM" Browser("Sign In").Page("Matching Workbench_3").WebEdit ("supplierNameLookup").Set "TRAMMO PETROLEUM INC" *** SupplierNameLookup is the object, which is haing an issue. And also I was using the SendString function, but it didnt work.
For which type of projects the iterative model is not suitable?
What is accessibility check point?
how will you check how many members visited the website www.infosys.com?
Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?
What is the use of ordinal identifier in qtp?
What is the expert view?
when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next
What are the different types of recording modes?
How to find the name of the machine where you are running your automation scripts in qtp?
how to know no.of mails in our g mail by using vb-script
Explain the views in the QTP GUI?
How do you configure QTP AND Test director?
How can you handle exceptions in qtp?