selenium-grid

Using Selenium RemoteWebDriver behind corporate proxy

自闭症网瘾萝莉.ら 提交于 2019-12-03 07:34:20
How can I connect to a selenium grid such as BrowserStack via RemoteWebDriver from behind a corporate proxy? The application under test is outside the proxy and freely accessible from BrowserStack. This Using Selenium RemoteWebDriver behind corporate proxy (Java) stackoverflow question asked the same question but I couldn't follow the accepted answer. I managed to get something working based on the accepted answer in the linked stackoverflow question, here's my implementation in case anyone else is stuck on the same problem: Example import java.net.InetAddress; import java.net

Error registering PhantomJS node in Selenium Grid

孤者浪人 提交于 2019-12-03 07:17:53
I have the following problem I successfully launched Selenium Grid hub with: java -jar selenium-server-standalone-2.53.0.jar -role hub After that I tried to launch PhantomJS node with: phantomjs --webdriver=8090 --webdriver-selenium-grid-hub=http://localhost:4444 but got Error: [INFO - 2016-03-25T13:56:28.397Z] GhostDriver - Main - running on port 8090 [INFO - 2016-03-25T13:56:28.397Z] GhostDriver - Main - registering to Selenium HUB ' http://localhost:4444 ' version: using '127.0.0.1:8090' with org.openqa.grid.selenium.proxy.DefaultRemoteProxy as remote proxy. [ERROR - 2016-03-25T13:56:28

Chromedriver is extremely slow on a specific machine using Selenium Grid and .net

前提是你 提交于 2019-12-03 06:44:07
问题 Overview: Chromedriver works normally on one machine but extremely slowly on two other identical machines. Setup: Selenium Webdriver using .Net for coding and Selenium Grid for distributing the tests. MSTest is being used from within Visual Studio 2010 in order to run the tests. A 64bit Windows 7 local machine acting as the Hub Three 32-bit Win 7 remote machines (two of them are virtual) on my local network all configured as nodes. Here is the command used to start the nodes on the remote

Executing tests Concurrently on different OS and Browsers with WebDriver using Java and TestNG

跟風遠走 提交于 2019-12-03 06:33:39
I have configured grid in my system and written my test script. I can run my test on any specified OS and any Browser but only on one OS and one Browser at one time not all OS and all Browser simultaneously. Here is what I have done. Please tell me how can I configure it so that it can run in configured OS in one time. My Script using Java is below: import java.net.MalformedURLException; import java.net.URL; import org.junit.AfterClass; import org.openqa.selenium.*; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; import org.testng

Selenium Grid2 - Remote Node not connecting to HUB

情到浓时终转凉″ 提交于 2019-12-03 01:33:05
My current setup is I have a selenium RC running as a hub on a windows machine(lets assume machine name is machine.name.com). I have used the following command to start it java -jar selenium-server2.15.jar -role hub -port 5555 I have a selenium node running on the same machine which is registered to the above node. I have used the following command to start the node java -jar selenium-server2.15.jar -role node -port 5554 -hub http://machine.name.com:5555/grid/register This node gets registered successfully, and I am able to run tests of this node as well. Now I have another machine (a LINUX

Chromedriver is extremely slow on a specific machine using Selenium Grid and .net

夙愿已清 提交于 2019-12-02 20:22:27
Overview: Chromedriver works normally on one machine but extremely slowly on two other identical machines. Setup: Selenium Webdriver using .Net for coding and Selenium Grid for distributing the tests. MSTest is being used from within Visual Studio 2010 in order to run the tests. A 64bit Windows 7 local machine acting as the Hub Three 32-bit Win 7 remote machines (two of them are virtual) on my local network all configured as nodes. Here is the command used to start the nodes on the remote machines: java -jar c:\seleniumWebDriver\seleniumGrid\selenium-server-standalone-2.31.0.jar -role node

How to kill thread in a Selenium Grid node

耗尽温柔 提交于 2019-12-02 16:50:23
问题 I am running a code in Selenium Grid. I have a class named TestBase as follows and I want to quit all the threads when I click on a button,but when I click on the button a NullpointerException is thrown. public class TestBase { protected ThreadLocal<RemoteWebDriver> threadDriver = null; Button b; Frame f; static boolean flag = true; @BeforeMethod public void setUp() throws MalformedURLException { if(flag) { JFrame calcFrame = new JFrame(); flag = false; calcFrame.setDefaultCloseOperation

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

て烟熏妆下的殇ゞ 提交于 2019-12-02 15:58:05
问题 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"), DesiredCapabilities.Firefox()); driver3.Url = "http://www.google.com"; Getting the error exception as: An unhandled exception of type 'System.InvalidOperationException' occurred in WebDriver.dll Additional information: Error forwarding the new session Empty pool of VM for setup Capabilities [{browserName

How to kill thread in a Selenium Grid node

别来无恙 提交于 2019-12-02 10:00:31
I am running a code in Selenium Grid. I have a class named TestBase as follows and I want to quit all the threads when I click on a button,but when I click on the button a NullpointerException is thrown. public class TestBase { protected ThreadLocal<RemoteWebDriver> threadDriver = null; Button b; Frame f; static boolean flag = true; @BeforeMethod public void setUp() throws MalformedURLException { if(flag) { JFrame calcFrame = new JFrame(); flag = false; calcFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); final JButton button1 = new JButton("1"); button1.addActionListener(new

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

醉酒当歌 提交于 2019-12-02 09:25:30
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"), DesiredCapabilities.Firefox()); driver3.Url = "http://www.google.com"; Getting the error exception as: An unhandled exception of type 'System.InvalidOperationException' occurred in WebDriver.dll Additional information: Error forwarding the new session Empty pool of VM for setup Capabilities [{browserName=firefox, version=, platform=ANY}] Can anyone please tell me how to fix this? I have done the following: I