i am trying to capture the URL from the open browser and
store it. pls give me solution how we can do this in QTP.
thanks
Answers were Sorted based on User's Feedback
Answer / chandu
try this
x=Browser("ALL Interview .com ::").GetROProperty("openurl")
msgbox x
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / neeraj chauhan
Hi All
Set oDesc=Description.create()
oDesc("html tag").value="INPUT"
oDesc("micclass").value="Link"
set
CollectionOfLinks=Browser("vBrowser").page("vPage").childobjects(oDesc)
NumberOfLinks=CollectionOfLinks.count()
for i=0 to NumberOfLinks
Print CollectionOfLinks(i).GetRoProperty("href or url")
Next
If still you face any problem, reply me.
Thanks and Regards
Neeraj Chauhan
| Is This Answer Correct ? | 3 Yes | 0 No |
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
What is the difference between link and hyperlink?
Explain measuring transaction.
What is data driver in qtp?
7. Given scenario is like this: One Web table is there and you have to search and retrieve a cell data which is equal to the given number say:123. Assume you have given with the column name/id of the table where the number may exist. So now you have to go to the given column and search for the number 123 and retrieve it along with the row number of it.
Is it possible to change the property value at runtime? How it is possible?
Generic function to search for the unique link in webtable and click on it
we have 10 actions in out test how can we convert 9th action is main action ? how ?
How to create Userdefined Function.Please write the steps ans also provide example where exatcly we use it.
i m fresher iwant to know about testing what is the scope of testing field.i m aware in manual testing shall i go to automatiuon testinh directly or if any work experinc in manual testinh then only i go to manually automation testing.
Have you ever written a compiled module? If yes tell me about some of the functions that you wrote.
What the genaric function to connect Sql Server using Sql Server Authentication and Windows Authentication