Newest 'selenium-grid' Questions

Q&A for professional and enthusiast programmers

Can't connect my 'BrowserFactory' to 'Selenium Grid'

I can't connect my BrowserFactory to Selenium Grid. Any ideas why the following code won't work? public static WebDriver getDriver() throws Exception { try { // Load the driver selected by user ...

Pytest: Wrapping every test in try/except

I'm trying to troubleshoot annoying sporadic selenium grid disconnect errors, like this: http.client.RemoteDisconnected: Remote end closed connection without response in my tests that use the pytest ...

Running Selenium Tests using TestNG in parallel causes errors

I am building a selenium grid framework using two VM's as nodes (chrome in one, Firefox in the other). When I run my sample test in series, they work with no issues. When I run them in parallel, ...

Selenium node/chrome docker image and selenium/hub docker image in different host machines

I have a situation where i have to use the node/chrome and selenium/hub images in different host machines. However problem is although i am linking them in the ansible role as below: - name: ...

Selenium Grid Node cannot connect to Hub

I am trying to initiate a Selenium Grid hub on my Mac and then set up a node on a Windows 7 VM also on my Mac (running in VirtualBox, if that matters). I am running this command on the Mac: java -...

Run Selenium hub and node using Java code

I want to create a utility wherein before executing selenium code. Another piece of code should check whether node and hub system is working. If not then perform setup to create a grid and then ...

Selenium/Jenins grid config (set maxInstances to 7, just 5 used)

I'm trying to use 7 instances of chrome browser in our slaves, but as you can see, 5 are used even if 7 needed: five instances was the old configuration, so i'm afraid i missed some configuration, ...

Execution not starting in node desktop when i am using Selenium GRID

Execution not starting in node desktop when i am using Selenium GRID. Here i tried to launch firefox browser in node desktop. How can i solve this issue. Your answers could be appreciated.Thanks in ...

IE is in not responding state or getting freeze in selenium grid

Sometimes IE is going to not responding state or getting freeze while running selenium scripts in selenium grid in the nodes. Event if we give driver.quit() , driver is not getting closed. Please let ...

“An unhandled exception of type 'System.InvalidOperationException' occurred in WebDriver.dll” error coming up

I am running a simple code to launch the firefox browser. Running it in Visual Studio. Below is the code: IWebDriver driver3 = new RemoteWebDriver( new Uri("http://localhost:4444/wd/hub"), ...

Does selenium grid runs only Selenium command or also code chunk from different library

I have done my automation in Robotframework and I am using many libraries like Selenium2Library, Sikuli Library, HTTP Library, OS library and few more. When I am running test on Selenium Grid, it ...

How to distribute the load efficiently with Selenium Grid

Business case : I am trying to automate a production flow to replace humans with automation.I receive many triggers from an application on a given day at various intervals and as soon as i get the ...

Selenium and java servlet and javaScript

I have a situation in which I want Selenium webdriver to run on client. I have a webpage with Submit button inside form. In form's action attribute I am calling servlet action="servletName". Now in ...

Selenium Grid node dropping/reconnecting every 30 seconds, Error: “DefaultRemoteProxy unknown version” in the console

I am trying to write some selenium grid (3.0.1) tests and using VirtualBox Windows VM's to test the framework. I can connect a hub to a node on the same machine (Mac or Windows, VM or real) with no ...

Selenium: Unable to create folder and file for download in the Jenkins pipeline

The test is to download a file by clicking the link for download template. When I execute the script in my local machine, it is working perfectly. Able to create the download folder and the file ...

open five firefox in same machine - selenium grid

I'm looking confirmation before proceeding parallel test, I try to run selenium test case on 5 firefox browser on same machine, right now it is create only single browser. Below one is my node ...

Selenium - Enable elementusing javascript is not working in Jenkins

The test is to upload a file but the problem is that the element is hidden. I used a javascript to make the element visible (refer to the code below). The code work perfectly when I execute it in my ...

remote execution in sikuli

I have an integrated selenium/sikuili automation project which I would like to run on windows agent here is the scenario: Machine (A) contains the source code Machine (B) is the agent test runner ...

selenium-server-standalone.jar maven dependency

I am using Maven as a build tool. On selniumhq site I can see selenium-server-standalone.jar file but I could not found related Maven dependency. Is there any maven dependency for selenium standalone ...

Selenium remotewebdriver stuck before launching browser

I'm trying to launch Firefox remotely on a windows machine from UNIX box using remotewebdriver I am also starting the selenium node remotely using ssh(It starts fine) using cygwin and OpenSSH. (I've ...

headless browser test case failed - selemium grid

Selenium grid test case failed in headless browser mode only Normal Browser Mode [Test Success] selenium stand alone server : 3.0.1 Firefox : 38.0.1 ip : 192.168.1.40 Headless Browser Mode [Test ...

Selenium grid and azure

we use VSTS to build apps but this all is not on remote machine but in cloud. I need to run selenium grid on this cloud to run my tests on nodes, how can i do it?If it was a remote machine that's ok ...

Is it possible to download excel or CSV report file in selenium grid at desire location?

I am trying to download excel and CSV report file in Selenium Grid but can't able to see downloaded file at desire location. FirefoxProfile profile = new FirefoxProfile(); profile.setPreference("...

How to run script when selenium node is idle (Selenium grid)

Is there any way to trigger a .bat script when a selenium node is idle? I have a selenium grid setup consisting of one hub and three nodes on separate machines. What i'm trying to do is to have a ...

Remote web driver does not start - Selenium grid

I'm trying to run my selenium grid code on remote nodes but it always throw exception. hub : java -jar /home/bu/selenium-server-standalone-3.0.1.jar -role hub it will listen on 192.168.1.106:4444 ...

Selenium Grid 3 node startup ignoring -nodeconfig node.json

I'm just setting up a new Selenium Grid, and have just one node to register to my hub at the moment. Both hub and node running on CentOS 7. I have two different versions of Firefox on my node, and ...

Providing path to Firefox/Chrome/IE installation in cygwin

I'm trying to launch Firefox remotely on a windows machine from UNIX box using remotewebdriver. I've tried by adding Firefox in the PATH as below: $ echo $PATH /cygdrive/c/Program Files (x86)/...

Why does my code Not connect to my Hub or Node?

Why does my code Not connect to my Hub or Node? I need to execute my test cases using a node. I have successuflly setup a hub and node. My code: case "chrome": if (null == webdriver) { ...

Define location of selenium chromedriver executable in node config json (3.0.1)?

I know I can define the location of the chrome driver executable when I launch a selenium grid node like so: -jar -Dwebdriver.chrome.driver="C:\chromedriver.exe" selenium-server-standalone-3.0.1.jar -...

Selenium Grid v.3.1.0 Test - Unable to create new remote session

I'm trying to launch Firefox (v. 51.0.1), Chrome (v. 56.0.2924.87), Edge (v.38.14393.0.0)** and Opera (v. 43.0) ** on a different machine (Windows 10) by using Selenium Grid. It's working well with ...

appium- ios-driver and Selenium GRID for download

i want to download selenium grid hub with iosRemoteProxy for ios remote execution appium from windows to MAC machine. But i cannot able to download iosSeleniumGrid.jar file. The page keep loading and ...

How to Open two firefox based on firefox path in python selenium

I want to open Firefox version 32 and 50 on same system using python selenium version 2.44. based on firefox path i want to open firefox browser 32 for first run 50 for second run. please any one ...

How to find chrome driver version in use for a node on a selnium grid

Is there a way to check the chrome driver version in use on a particular node remotely? I know running chromedriver.exe -v directly on the node will report the driver version. But is there any way to ...

RemoteWebDriver launches browsers in background when started remotely using cygwin and openssh

I am trying to run automation tests remotely on a windows machine using from Unix box. I am using cygwin and openssh for it. I am able to run the tests and take screenshots. However, the browsers ...

Execute jbehave stories in parallel using serenitybdd + seleniumgrid

I am using jbehave with serenitybdd. All the scenario's are written in .story file. I want to execute each story in parallel using selenium grid, for this I have created a hub and registered a node ...

Possible to run x3 tests simultaneously on one node using the same Browser?

Possible to run x3 tests simultaneously on one node using the same browser? My test involves adding x1 to the basket. Is this even possible when cookies are involved because the same browser is being ...

Chrome Node in Selenium/Docker keeps crashing

I have a CentOs virtual machine running a selenium chrome node in docker Static hostname: btpcentos1.kaiglan.com Icon name: computer-vm Chassis: vm Virtualization: vmware Operating System: CentOS ...

Safari 10.0.3 Vs Selenium 2.52.0 - Session was terminated due to SO_TIMEOUT & Session was terminated due to PROXY_REREGISTRATION

After upgrading to Safari latest version 10.0.3 & MAC latest version macSierra, execution gets interrupted with the following error messages, Session was terminated due to SO_TIMEOUT Once the ...

unable to create new remote session with remotewebdriver and gecko driver

I am trying to migrate to selenium 3, however I am having problems with creating new remote session here is my code below: protected RemoteWebDriver driver; @Test public void testing() ...

table.findElements(By.tagName(“td”) failing in RemoteWebDriver/Internet Explorer

I have a series of Selenium tests that are ran remotely using Selenium Grid in internet Explorer. The tests are working fine until they get to this line: WebElement cart = driver.findElement(By.id("...

OWASP ZAP JVM contention with same Selenium Grid ports

I am attempting to run Selenium automation scripts through the selenium grid server with ZAP sitting on the same port analyzing the thru traffic. However, I am having a point of contention with both (...

DesiredCapabilities 'Chrome' > Dosnt Work with 'Selenium Grid'

DesiredCapabilities 'Chrome' > Dosnt Work with 'Selenium Grid. I have a hub setup correctly and a node however when trying to point Chrome browser to one of the nodes it dosnt work. Current code: ...

Selenium; How to run multiple instances and maintain different session

I know we can run tests in multiple browsers using testng and selenium grid. But, the problem am facing is, Second browser is taking the logged in session of first browser. I mean, I need to sign in ...

How to solve org.openqa.selenium.SessionNotCreatedException selenium grid 3

I am using selenium 3.2.0 standalone, chrome latest version and chrome driver latest version which is giving not able to connect exemption on running. Issue is with chrome driver please help org....

How to log what node Selenium Grid tests are running on

I am curious if there is a way for me to log which node my Selenium Grid tests ran on. I am interested in this for debugging purposes. Sometimes I need to look at the selenium_node logs and currently ...

How to start Chrome (both normal & incognito modes) and open URL in remote PC (node) using Selenium Grid in Java?

I am trying Selenium Grid in Java and just want to start Chrome in both normal mode and incognito mode in remote PC (node) and open google.com I have setup the hub - node connection. I tried ...

Has anyone used the Java robot class to execute keystrokes using remoteWebDriver on Selenium grid?

I have a test case where I need to enter keystrokes into a windows dialog that pops up. I can successfully do this using the Java robot class to enter the desired keystrokes into the dialog when I run ...

Selenium grid routing to wrong nodes

I have the selenium grid 3.0.1 setup with a single hub and three nodes as follows: First Node: linux with Chrome and Firefox Second Node: Windows 10 with Chrome, Firefox, Edge and Internet Explorer ...

API for getting the selenium nodes status from the grid host

Sorry for the generic question, but is there an api that is available as part of the selenium grid that i can query to find out the current active sessions on the grid. There is an api that uses the ...

Selenium Grid Node is repeatedly registering with the hub (Selenium 3.3)

I run this command on a virtual machine to register a node with my Selenium Grid hub: java -Dwebdriver.ie.driver=C:\IEDriverServer.exe -Dwebdriver.chrome.driver=C:\chromedriver.exe -Dwebdriver.gecko....
Translating... 0%