How to find the number the number of Links, Brolken Links
in a webpage?
Answer Posted / rayudu
By using childobject method
Set linkDescObj=description.Create()
linkDescObj("micclass").value="Link"
Set Links=browser("Gmail: Email from Google").Page("Gmail -
Inbox -srikrishna").ChildObjects(linkDescObj)
NoOfLinks=Links.count()
msgbox NoOfLinks
For i=0 to NoOfLinks-1
linkName=Links(i).getROProperty("name")
msgbox linkName
Next
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How you can write contexts to text file in qtp?
What is checkpoints for quicktest professional (qtp)?
What are the automation metrice in your project?
i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?
Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John
How to associate function library at a run time?
What do you mean by iteration?
How many add-ins comes by default with qtp?
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?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
what is the advantages and disadvantages of using functions instead of re usable actions
In qtp is it possible to check broken links of a page?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
What do you to script when objects are removed from application?
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click