cancel
Showing results for 
Search instead for 
Did you mean: 

check extension is installed on browser.

SOLVED
Regular Contributor

check extension is installed on browser.

How can Check extension is installed on browsers or not by using script.

1 ACCEPTED SOLUTION

Accepted Solutions
Regular Contributor

Re: check extension is installed on browser.

Hi @tristaanogre 

Yes... I raised query for same and below is the reply.

"The test failures I found are related to a SetUpBrowser function in your tests that closes an existing browser window before opening a new browser with OpenBrowserWithURL.
When the new browser window is launched this way, it does not always contain the user profile information needed and causes the test to fail. I would recommend posting the URL to the existing browser window instead of opening a new browser to see if that produces more consistent results for your tests."

 

And below is the function I am using.

 

Sub SetUpBrowser
 While Sys.WaitBrowser().Exists
 Call Sys.WaitBrowser().Close()
 Wend
End Sub

 

 

Sub OpenBrowserWithURL (BrowserName,URL)
Dim firefox,InternetExplorer,Chrome,Edge, Browser

If (BrowserName="Firefox")Then
Browsers.Item(firefox).Navigate(URL)
Sys.Browser.BrowserWindow(0).Maximize
ElseIf (BrowserName="InternetExplorer")Then
Browsers.Item("iexplore", "11", Browsers.pX64).Run URL
Sys.Browser.BrowserWindow(0).Maximize
ElseIf (BrowserName="Edge")Then
Browsers.Item(btEdge).Navigate(URL)
Sys.Browser.BrowserWindow(0).Maximize
ElseIf (BrowserName="Chrome")Then
Browsers.Item(btChrome).Navigate(URL)
Sys.Browser("chrome").BrowserWindow(0).Maximize
End If

Browser = Browsers.CurrentBrowser.Description
Log.Checkpoint("Browser Details: " + Browser)
Log.Checkpoint("URL: "&URL)

Browsers.Refresh
End Sub

 

@vinniew 

Thanks for reply.

Yes.. I am working on multiple instances(CBT).

I have already gone through thelink provided by you but now I am looking to check extension status on browser.

View solution in original post

4 REPLIES 4
Occasional Contributor

Re: check extension is installed on browser.

Hey Kaii, 

 

The extension is used only in chrome so its only chrome you need to check 

 

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/preparing-browsers/chrome-ex...

 

Have you multiple instances of chrome? 

 

For other browser prepparation the steps are different so see the below link for reference

 

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/preparing-browsers/index.htm...

 

Hope this helps 

 

Vinnie

 

Community Hero

Re: check extension is installed on browser.

Based upon your previous messages and conversations, I understand that you're doing most of your work in CBT environments.  If you are having a problem with running a chrome test on a CBT environment where it's stating that the extension is not installed, that is a support question for the CBT team...and I believe you've been given the advice to open a support ticket with that team.  Have you done so?  If so, what was the response?


Robert Martin
[Hall of Fame]
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
Regular Contributor

Re: check extension is installed on browser.

Hi @tristaanogre 

Yes... I raised query for same and below is the reply.

"The test failures I found are related to a SetUpBrowser function in your tests that closes an existing browser window before opening a new browser with OpenBrowserWithURL.
When the new browser window is launched this way, it does not always contain the user profile information needed and causes the test to fail. I would recommend posting the URL to the existing browser window instead of opening a new browser to see if that produces more consistent results for your tests."

 

And below is the function I am using.

 

Sub SetUpBrowser
 While Sys.WaitBrowser().Exists
 Call Sys.WaitBrowser().Close()
 Wend
End Sub

 

 

Sub OpenBrowserWithURL (BrowserName,URL)
Dim firefox,InternetExplorer,Chrome,Edge, Browser

If (BrowserName="Firefox")Then
Browsers.Item(firefox).Navigate(URL)
Sys.Browser.BrowserWindow(0).Maximize
ElseIf (BrowserName="InternetExplorer")Then
Browsers.Item("iexplore", "11", Browsers.pX64).Run URL
Sys.Browser.BrowserWindow(0).Maximize
ElseIf (BrowserName="Edge")Then
Browsers.Item(btEdge).Navigate(URL)
Sys.Browser.BrowserWindow(0).Maximize
ElseIf (BrowserName="Chrome")Then
Browsers.Item(btChrome).Navigate(URL)
Sys.Browser("chrome").BrowserWindow(0).Maximize
End If

Browser = Browsers.CurrentBrowser.Description
Log.Checkpoint("Browser Details: " + Browser)
Log.Checkpoint("URL: "&URL)

Browsers.Refresh
End Sub

 

@vinniew 

Thanks for reply.

Yes.. I am working on multiple instances(CBT).

I have already gone through thelink provided by you but now I am looking to check extension status on browser.

View solution in original post

Community Manager

Re: check extension is installed on browser.

Thank you everybody for helping!

 

Hi @kaiiii, thank you for sharing the support's reply. Did you manage to solve this?


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors