Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to invoke browser without using OR
#1
Solved: 9 Years, 4 Months, 1 Week ago
Hi,
I wanted to know if we can simply open a browser without first recording it, I wrote

Code:
Browser("IE").Page("Google").WebButton("Google Search").Click



Also, I tried below code,

Code:
SystemUtil.Run "iexplore", "www.google.com"

With Browser("Internet Explorer").Page("Google")
  .WebButton("Google Search").Click
End With

Or, Simply

Code:
Browser("Internet Explorer").OpenNewTab

In all above cases I get error that "Internet Explorer" object not found in repository & find a correct name of object"

So, what to write in place of "Internet Explorer" in all three above cases. Attached is screenshot of result.

Thanks for help!!


Attached Files Image(s)
   
Reply
#2
Solved: 9 Years, 4 Months, 1 Week ago
Use Descriptive programming approach if you donot want to use Object Repository. For browser go for ordinal identifier "creation time" for identifying the same.
For browser it is
Code:
Browser("creationtime:=0")
Reply
#3
Solved: 9 Years, 4 Months, 1 Week ago
Hi,
Thanks for replying, I tried simple code below

Code:
Browser("creation time:=0").OpenNewTab

However got error that browser object cant be identified. Pls see error in screenshot attached.
So, is there no way to start/invoke browser without first having it in OR.

thnx for help


Attached Files Image(s)
   
Reply
#4
Solved: 9 Years, 4 Months, 1 Week ago
My bad...there is no space between creation and time.Try this.
Code:
Browser("creationtime:=0").Highlight
Reply
#5
Solved: 9 Years, 4 Months, 1 Week ago
Hi,
This worked, Thanks for help Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Cannot find the "[ WebEdit ]" object's parent "[ Browser ]" (class Browser). Verify t Divya Roopa 1 8,476 03-11-2014, 12:13 PM
Last Post: devarapallliramana
  Functions invoke of others test Juan Carlos 3 3,433 09-20-2010, 07:11 PM
Last Post: lotos
  Can you invoke QTP bfakruddin 0 1,855 02-04-2009, 03:41 PM
Last Post: bfakruddin
  VBS to launch QTP 9.2 and invoke script automatically test123 2 11,983 05-08-2008, 09:17 PM
Last Post: Sri
  Invoke QTP from other machine on the network manzoor_mustafa 0 2,223 04-10-2008, 04:57 PM
Last Post: manzoor_mustafa

Forum Jump:


Users browsing this thread: 1 Guest(s)