Forum Discussion
you still haven't shared what I asked for... the actual code.
Note that you can't run a test coded for Chrome on a CrossBrowserTesting environment without Chrome installed. So, it sounds, first of all, that you need to make sure that you're selecting appropriate environments for the tests your running. Additionally, as mentioned above, you need to make sure you write your automation code to be browser agnostic. That way you can run it on any environment and not have to worry about "not installed" errors.
As for the intelligent quality add-on, it's only required if you need to use the feature. But it's not something that is relevant to the original problem. Browser recognition has nothing to do with that add-on.
Hi tristaanogre
Thanks for reply.
I want to inform you when I execute my script It was wotking fine on (Windows 10, Chrome73-64bit). Whole script execute fine and generate report.
But when I am choosing (window 8, Or any other version of chrome, firefox)...not 64 bit then script is failed. Kindly check the failure in attachment.
Below is the code that i'm using.
Sub OpenBrowserWithURL (BrowserName,URL)
Dim firefox,InternetExplorer,Chrome,Edge
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
Log.Checkpoint("Browser Name: "&BrowserName)
Log.Checkpoint("URL: "&URL)
End If
Browsers.Refresh
End Sub
- AlexKaras5 years agoChampion Level 3
Hi,
> Below is the code that i'm using.
Either this is not the code that you reported problem for or attached screenshots do not correspond to this code.
So request to provide actual code, the line that fails and screenshot of the relevant test log still remains.
As a side note:
> Set page = Sys.Browser("*").Page("*")
This is a bad code that may be used only if you really need this and completely control the state of the test environment.
Translated into human, this line of code means: "Search the system for any instance of any browser. For the found instance search for any web page it contains and use this found page".
Considering the above: can you guarantee that your system has only one instance of required browser running with only one web page opened and the opened web page is the expected one? Note, that the "any instance of any browser" means not only browsers that you can see on the screen, but also those that are running in the background or hung and did not end on close.
- TanyaYatskovska5 years agoSmartBear Alumni (Retired)
Hi kaiiii,
I see that you get the TestComplete Chrome Extension Is Not Installed or Is Disabled error message. First of all, you need to resolve it. You can find ways of how to do this here:
- kaiiii5 years agoRegular Contributor
Thanks for your reply.
I have already gone through this document and my script is working fine.
That chrome is not installed problem is occuring on crosbrowsertesting . When I am using different browsers version.
and I think We can not configure browsers setting overthere.
I am still looking for an answer.
Related Content
Recent Discussions
- 2 days agoGane195