Suppose there are 100 links in a web page and the number of
links will be changing dynamically from time to time. I
need code such that every time i had to click on the last
link of the web page.
Answer Posted / amarendra kothuru
Below code will work for your case.
' Set a description object to identify links.
Set oDesc = Description.Create()
oDesc("html tag").Value = "A"
' Get a collection of links
Set oLinkCollection = Browser("test").Page
("test").ChildObjects(oDesc)
Set obj=oLinkCollection.Item(oLinkCollection.Count-1)
obj.Click
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
how many maximum number of virtual users we can create?
What is the basic concept of quicktest professional (qtp)?
What is action split and the purpose of using this in qtp?
What is the use of sendkeys and what are send keys
How many add-ins comes by default with quicktest professional?
I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com
What is the difference between qtp and selenium?
Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance
how to find that tools work well with ur existing system?
What is the difference between run time object and test object?
How to save your test using quicktest professional (qtp)?
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution
How you calling actions in qtp?
What is the difference in the global and action sheet in qtp?