Ask a Question

Object required: 'Browsers'

jaggu_009
Occasional Contributor

Object required: 'Browsers'

hi,

am unable to run this line. i am getting browser object required error. can any one help?



Ex: Browsers.Item("iexplorer").Run "http://smartbear.com/products"
8 REPLIES 8
irina_lukina
Super Contributor

Hi Pasumarthi,


There is an unnecessary letter ("r") at the end of the browser name. Try using the following code:




Browsers.Item("iexplore").Run "http://smartbear.com/products"


Does it work?

I’m not a member of the SmartBear Support Team, I’m just helping users in this community. Any views or opinions expressed do not necessarily represent those of SmartBear Software.
jaggu_009
Occasional Contributor

hi Lukina,



though i am writing the below line still am getting the same error. Any other idea is there?



Browsers.Item("iexplore").Run "http://smartbear.com/products"
irina_lukina
Super Contributor

Hi,


Please clarify a few things:


1. Which version of TestComplete are you using?

The fact is that the described approach was introduced in TestComplete 9 and doesn't work in TestComplete's previous versions.


2. Which edition of TestComplete are you using (Enterprise or Standard)?


Thanks.

I’m not a member of the SmartBear Support Team, I’m just helping users in this community. Any views or opinions expressed do not necessarily represent those of SmartBear Software.
jaggu_009
Occasional Contributor

hi,



Thanks for the information. actually we are using test complete 8.0 version.
irina_lukina
Super Contributor

Hi Pasumarthi,


In TestComplete 8.0, use the following approach:



Sys.Process("iexplore").ToURL "http://smartbear.com/products"


Does it work?

I’m not a member of the SmartBear Support Team, I’m just helping users in this community. Any views or opinions expressed do not necessarily represent those of SmartBear Software.
jaggu_009
Occasional Contributor

hi Lukina,



Sys.Process("iexplore").ToURL "http://smartbear.com/products" is also not working.... is there any idea.. ?

i am trying sys.process("iexplore",2).page("http://.....") but it is also not working...



Thanks

Jagadeesh
jaggu_009
Occasional Contributor

hi lukina,



if  the browser is already opened then it is working fine, but till now am asking how to launch browse through test complete.



Call TestedApps.iexplore.Run(1, True) 
is working fine for launching application.



any way thank you so much for suggesting me how to enter URL in Address bar.



Thanks

Jagadeesh

 



 
irina_lukina
Super Contributor

Hi,


if  the browser is already opened then it is working fine


You are absolutely right. This method lets you navigate the running instance of Internet Explorer to the specified web page. If you need to launch the browser automatically, add it to the Tested Applications collection and then use the code from your previous post.

I’m not a member of the SmartBear Support Team, I’m just helping users in this community. Any views or opinions expressed do not necessarily represent those of SmartBear Software.
cancel
Showing results for 
Search instead for 
Did you mean: