selenium-grid

Protractor - run multiple tests in parallel on different browsers

北城余情 提交于 2019-11-27 20:01:27
I can't find any information on how to set this up, but it seems like a pretty basic concept, so I'm sure there's an answer out there. I know how to run protractor on different browsers by setting the browserName property of the capabilities object in the config. And that's working great. I can set it to 'chrome' or 'firefox' or whatever I need and it runs just as expected. But the only way to run a single test suite against multiple browsers (as far as I know) is to create separate config files, each with a different browserName and then run each browser with its own config. This works, but

'Connection refused! Is selenium server started?\n' while running Nightwatch.js tests against Selenium Grid

随声附和 提交于 2019-11-27 19:35:25
问题 I use Nightwatch-Cucumber based on Nightwatch.js to automate my tests. And now I want to use Selenium Grid with a Selenium hub and several Selenium nodes to execute my tests. These are my current dependencies I actually use: "devDependencies": { "chromedriver": "2.37.0", "cucumber": "3.0.2", "geckodriver": "1.11.0", "nightwatch": "0.9.19", "nightwatch-cucumber": "9.0.0", "selenium-server-standalone-jar": "3.9.1", }, And this is my nightwatch.conf.js : const config = { globals_path: "globals

'Connection refused! Is selenium server started?\\n' while running Nightwatch.js tests against Selenium Grid

爷,独闯天下 提交于 2019-11-27 16:22:37
I use Nightwatch-Cucumber based on Nightwatch.js to automate my tests. And now I want to use Selenium Grid with a Selenium hub and several Selenium nodes to execute my tests. These are my current dependencies I actually use: "devDependencies": { "chromedriver": "2.37.0", "cucumber": "3.0.2", "geckodriver": "1.11.0", "nightwatch": "0.9.19", "nightwatch-cucumber": "9.0.0", "selenium-server-standalone-jar": "3.9.1", }, And this is my nightwatch.conf.js : const config = { globals_path: "globals.js", output_folder: "reports", custom_commands_path: "commands", // custom_assertions_path: 'assertions'

Selenium Grid: MaxSessions vs MaxInstances

北战南征 提交于 2019-11-27 11:00:49
I was wondering if anybody could shed some light on a Selenium question that has been giving us a bit of head scratching. We're confused on meaning of MaxSession and MaxInstances of Selenium Grid. We think that the MaxSession is the total number of test sessions that can run on a single node. And we also think that the MaxInstances is the total number of browsers that a test can open. Or is MaxInstances the total number of browsers available to the node? The command that we are using is: java -Xrs -jar selenium-server.jar -role node -port 44506 -hub http://localhost:44500 /grid/register

How to Merge Chrome driver service with desired capabilities for headless using xvfb?

只愿长相守 提交于 2019-11-27 07:34:04
问题 I want to merge ChromeDriverService with chromeOptions or with DesiredCapabilities for running browser in xvfb. Below is part of code ChromeDriverService I previously used without selenium grid. String NodeChromeIncognito = "http://localhost:5558/wd/hub" ChromeDriverService chromeDriverService = new ChromeDriverService.Builder() .usingDriverExecutable(new File("driver_linux/chromedriver")) .usingAnyFreePort() .withEnvironment(ImmutableMap.of("DISPLAY", ":1")).build(); chromeDriverService

selenium grid listening on node port instead of hub port

感情迁移 提交于 2019-11-27 07:28:02
问题 For my test, I am running grid and node locally on different ports. java -jar /usr/bin/selenium-server.jar -port 4444 -role hub java -jar /usr/bin/selenium-server.jar -role node -hub http://127.0.0.1:4444/grid/register -port 5556 So, the grid is running on 4444 and node is running on 5556. In my test, if i start the driver as driver = webdriver.Remote(command_executor='http://127.0.0.1:4444/wd/hub', desired_capabilities=desired_capabilities) then the test fails with the exception response = {

WebDriver Chrome Browser: Avoid 'Do you want chrome to save your password' pop up

北城以北 提交于 2019-11-27 06:37:57
问题 Every time my webdriver tests login into the application, 'Do you want chrome to save your password' pop up appears.. Is there a way to avoid this?? Please help. Thanks, Mike 回答1: You need to configure the following chrome driver options: chromeOptions: { prefs: { 'credentials_enable_service': false, 'profile': { 'password_manager_enabled': false } } } 回答2: I'm using Python, and this worked for me: from selenium import webdriver from selenium.webdriver.chrome.options import Options chrome

Parameterized Selenium Tests in Parallel with TestNG

本小妞迷上赌 提交于 2019-11-27 05:47:56
问题 First of all, sorry for my english, it's not so perfect :) So I'm facing with the following problem: I'm trying to run parallel tests in different browsers using Selenium Grid and TestNg and I pass the parameters in the @BeforeTest method. My problem is that when every test get initialized, it seems that they will use the last test's parameters. So in this example when I run the test, it will open two Chrome, instead of one Firefox and one Chrome. (The browser.getDriver() method returns a

SessionNotCreatedException: Message: Unable to create new service: ChromeDriverService with ChromeDriver and SeleniumGrid through Python

一个人想着一个人 提交于 2019-11-27 04:53:41
问题 Hi anyone know what is going on or how I can debug the error as following. the step I did is using setup hub command and register node to hub. after the command register node. I can see the log as The node is registered to the hub and ready to use However when I run the test script I have error print up as: selenium.common.exceptions.SessionNotCreatedException: Message: Unable to create new service: ChromeDriverService Binary versions: selenium standalone version: 3.14.0 selenium remote

Selenium RemoteWebDriver c# - System.InvalidOperationException

寵の児 提交于 2019-11-27 03:29:20
问题 I have a sample UI test project using v3.4.0 of Selenium.WebDriver. Everything works fine when I run the tests against a local driver but I want to get things working using Selenium Grid 2. As soon as I try to instantiate a new RemoteWebDriver I get an exception with little detail. Driver = new RemoteWebDriver(new Uri(GridUrl), Capabilities); Note: GridUrl is "http://localhost:4444/wd/hub" Throws a System.InvalidOperationException with StackTrace as follows: at OpenQA.Selenium.Remote