cancel
Showing results for 
Search instead for 
Did you mean: 

Launching browser

SOLVED
Highlighted
Occasional Contributor

Launching browser

Hi,

 

I am trying to open chrome using the following code:

Browsers.Item(btchrome).Run(LoginURL);

Sys.Browser().BrowserWindow(0).Maximize();

 

But this throws exception as Error Undefined. May I know what has to be done in this.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Community Hero

Re: Launching browser

Two questions:

 

1) What version of Chrome are you running?

2) What version of TestComplete are you running?

If Chrome has updated recently, you may be running a version of Chrome that needs a patch for TC.  Currently, there are patches available for Chrome 79 (the latest version) for TC 14.20 and 14.30.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

Highlighted
Community Hero

Re: Launching browser

Hi,

 

As per https://support.smartbear.com/downloads/testcomplete/chrome-patches/, Chrome 79 is not supported in TC 14.10.

Is there anything that prevents you from upgrading your TC installation?

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================

View solution in original post

13 REPLIES 13
Highlighted
Community Hero

Re: Launching browser

Hi,

 

Check if

Browsers.Item(btChrome).Run(LoginURL); // Capital 'C'

helps...

 

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Highlighted
Occasional Contributor

Re: Launching browser

Its Capital C only, bymistake here it is small. while opening chrome browser it enters into exception and throws error as error undefined as in attached screenshot.

Highlighted
Community Manager

Re: Launching browser

Hi @djvakarjoshi1,

In your example, you specified two lines. Which exact line fails?

Also, could you please try to record the script by using TestComplete's Recording feature and play it back? Do you see any errors?

---------
Tanya Gorbunova
SmartBear Community Manager

 Join SmartBear Connect next April in Boston to meet with software development, API and testing experts from around the world! Get your ticket today!
Highlighted
Occasional Contributor

Re: Launching browser

It fails in the first line

Highlighted
Community Hero

Re: Launching browser

Hi,

 

Can you post the screenshot of the whole test window? (Code or Keyword)

Does LoginURL have value assigned? Does it contain valid web address?

Does the Additional Info test log panel contain some extended information?

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Highlighted
Community Hero

Re: Launching browser

Do you have a web license?  The Browsers object is not available if you're not licensed for it.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Highlighted
Community Manager

Re: Launching browser

Thanks everyone for participating in this thread. 

Hi @djvakarjoshi1 , were you able to solve this? If not, please provide the community members with the details they are requiring and we will try our best to help. 



Sonya Mihaljova
Community and Education Specialist

 Join SmartBear Connect next April in Boston to meet with software development, API and testing experts from around the world! Get your ticket today!
Highlighted
Occasional Contributor

Re: Launching browser

I am able to launch it in internet explorer but not in chrome

Highlighted
Community Hero

Re: Launching browser

Two questions:

 

1) What version of Chrome are you running?

2) What version of TestComplete are you running?

If Chrome has updated recently, you may be running a version of Chrome that needs a patch for TC.  Currently, there are patches available for Chrome 79 (the latest version) for TC 14.20 and 14.30.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post