Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
601 views
by Contributing Tester (22 points)
edited by

When i executed selenium(wedriver) script, it will open two tab in chrome brower and the application is opened in second tab. Please let me know that How can the application open in first default tab in chrome browser?

Please find screen shot link below:

https://imgur.com/a/PMr9u91 

Regards

Samta Sharma

1 Answer

0 like 0 dislike
by
selected by
 
Best answer

This is a very rare scenario.

There are two things you can do.

1. Make sure that your chrome driver executable is to the latest version. (http://chromedriver.chromium.org/downloads)

2. If you are using any 3rd party extensions with your chrome, kindly remove it. 

Apart from this, I suggest you share your code that Initiates your driver and opens the chrome browser. So we can investigate more.

by Contributing Tester (22 points)
Hi,

Thanks for your quick reply.

I checked and application is opened in Chromium, just want to ask you that application should be open in Chromium or Google Chrome? This is the below Chromium version on my machine:

Chromium
Version 69.0.3494.0 (Developer Build) (64-bit)

Chromium
Copyright 2019 The Chromium Authors. All rights reserved.
Chromium is made possible by the Chromium open source project and other open source software.

My CLI(Like Selenium tool) not opening application in Google chrome. This is the below Chrome version on my machine is installed:
Google Chrome
Version 73.0.3683.103 (Official Build) (64-bit)
Google Chrome
Copyright 2019 Google Inc. All rights reserved.
Google Chrome is made possible by the Chromium open source project and other open source software.
Google Chrome Terms of Service

Here is the image of the browser where the application is opened:
https://imgur.com/a/7b7Cswz


This is the below code for initiates the browser:
//Access website
export default () => {

    step('1. User lands on the homepage', async browser => {

         await browser.visit('https://ccuat.online.cub.com.au/sabmStore/en/')
  
          let pageTextVerify = By.visibleText("Welcome, please login.")
          await browser.wait(Until.elementIsVisible(pageTextVerify))
  
      await browser.takeScreenshot()
      
    })

Thank you
Samta Sharma
by Contributing Tester (22 points)
The code we have written in CLI(Command Line interface), it is like Selenium tool, coding is also like selenium.
Samta
by Contributing Tester (99 points)
Hi Samta,

Usually, the application should open Google Chrome and not Chromium.

Can you try uninstalling Chromium and execute your code again?

-JA
by Contributing Tester (22 points)
Hi JA,
Thanks for your quick reply.

I have checked in my control panel there is not chromium installed, so as per the internet guide we need to delete the chromium floder from c:user/myname/local, that i have deleted.
I have restarted my system and executed my script, then the application is opened in chromium.
Please see below screen shot for this:
https://imgur.com/a/zDEO53e
https://imgur.com/a/nuNxsAs

I could not uninstalled chromium from my machine.

Samta Sharma
by Contributing Tester (99 points)
Hi Samta,

Are you using ProtractorJS?

If so, kindly look capabilities into your config.ts file and let us know what browser is configured there.

-JA
by Contributing Tester (22 points)
Hi JA,

Thanks you so much for your support.

I am not using protector JS.

There is new tool  CLI flood for performance testing but we are creating functional test script on Visual studio code and running on Command line. Please see below link of  my config file for CLI tool. I did not see any thing regarding chromium browser. Please let me know do i need to update anything in this file.

If you want to check this issue on laptop by meeting i am happy to do meeting also.

https://imgur.com/a/MM6yERl

Regards
Samta
by Contributing Tester (22 points)
Hi JA,

Sorry forget to share you CLI flood tool link. here is the below link:

https://element.flood.io/docs/1.0/getting-started/04-scripting

Regards
Samta
by Contributing Tester (99 points)
Okay, so Flood is load testing tool. I have not explored it much, but it looks like it is only compatible with the Chromium browser. I found a GitHub project that tries to provide Chrome API https://github.com/flood-io/flood-chrome-docs maybe you can explore it.

I doubt that Flood has cross-browser functionality as of now.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...