Pls let me know how to find out creation time and index for
the web application in descriptive programming?
Answers were Sorted based on User's Feedback
Answer / saket bharti
Set objBrowser=Description.Create()
objBrowser("micclass")="Browser"
Set BrowserChildArray=Desktop.Childobjects(objBrowser)
for i=0 to BrowserChildArray.Count-1
msgbox BrowserChildArray(i).GetRoProperty("creationtime")
Next
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shrinivasbt
hi try this code
For i = 0 To 4
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe"
Set objPage = Browser("creationtime:="&i).Page("micclass:=Page")
WaitForObjectSync(objPage)
Print Browser("creationtime:=" &
i).GetROProperty("creationtime")
Next
for more details u can reach me on shrinivaster@gmail.com
thanks
| Is This Answer Correct ? | 0 Yes | 1 No |
How do you connect to database ,What is the script to connect DATA BASE?
Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you
Hi friends, I have heard that it is required to have an application hosted in the same machine where we use QTP. Otherwise QTP may identify the objects incorrectly. Please clear me is it true.
what is output parameters in qtp?explain? 2)
how to write the descriptive programming in QTP for loginwindow.without using Step generator,object repository for referecnes
Have you ever written a compiled module? If yes tell me about some of the functions that you wrote.
what is Synchronization point in QTP?Can anybody give a perfect example on it Thanks in advance
can we create recorset with out using database connection in vbscript?
Is there anyway to have QTP go into a website and map out every object before I actually record any tests? I basically want to map out a website with all the objects and build a complete repository. The reason is because I'm running into issues with hierarcical objects. for example: Browser("ABC company- Home").Page("ABC company - Home").Link ("About Us").Click Browser("ABC company - Page 2").Page("ABC company - Page 2").Link("About Us").Click Both these links ("objects" and I use that term loosely as I'm trained mostly in OO programming) go to the same place but but the object heirarchies (pages) are different. I want a repository that will find any possible link on any possible page without having to manually record it. Is there a way to do this?
what are the limitations of smart identification in qtp 9.0
3 differences between QTP & Winrunner?
Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek