Questions tagged [remotewebdriver]

RemoteWebDriver is an implementation class of the WebDriver interface that a test script developer can use to execute their test scripts via the RemoteWebDriver server on a remote machine.

RemoteWebDriver : There are two parts to RemoteWebDriver:

  1. RemoteWebDriver server
  2. WebDriver client

  • The RemoteWebDriver server is a component that listens on a port for various requests from a RemoteWebDriver client. Once it receives the requests, it forwards them to Firefox Driver, IE Driver, or Chrome Driver depends on the browser.
  • When you execute your tests locally, the WebDriver client libraries talk to your Firefox Driver, IE Driver, or Chrome Driver directly. Now, when you try to execute your tests remotely, the WebDriver client libraries talk to the RemoteWebDriver server and the server talks to either the Firefox Driver, IE Driver, or Chrome Driver, whichever the WebDriver client asks for.
333 questions
2
votes
1 answer

Selenium Grid and local runs

I have a grid hub running with some nodes, the grid URL is stored in a c# project App.Config file. My App.Config also specifies which browser to use to run tests against. In a WebDriver factory class I create a new instance of RemoteWebDriver …
user577240
  • 460
  • 1
  • 7
  • 14
2
votes
3 answers

Getting org.openqa.selenium.remote.SessionNotFoundException for IE Driver

I am getting org.openqa.selenium.remote.SessionNotFoundException: session null does not exist exception while trying to open google.com through IE driver. My code is as follows: public class Google { static WebDriver obj; public static…
2
votes
0 answers

WebDriver Java: Reattach existing webdriver browser session to a driver instance

I'm looking for a way to reattach an existing webdriver browser session to a driver instance so i could control the browser again. So far, I've tried the following: I. ========================================== Reference:…
2
votes
1 answer

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() throws FileNotFoundException, IOException { …
Ali Hamadi
  • 673
  • 3
  • 11
  • 26
2
votes
1 answer

Selenium RemoteWebDriver against a Windows Service of ChromeDriver

Context: Windows 10 Home; Visual Studio 2015 Community; C#; NSSM; ChromeDriver 2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd05129); Nuget package Selenium.WebDriver.2.53.1; Nuget package Selenium.WebDriver.ChromeDriver.2.23.0.1 I…
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
2
votes
1 answer

Selenium: pageLoadTimeout not working for constantly redirecting sites

I use Selenium to browse multiple websites and store their markup. In order to speed things up, I have set a pageLoadTimeout to throw an exception for sites that take too long to load: driver.manage().timeouts().pageLoadTimeout(20,…
2
votes
1 answer

Selecting multiple elements with Selenium

I'm creating List of all available elements with below Xpath. IList test= Driver.FindElements(By.XPath("//*[@id='middle-container']//div[@class='middle-section match-list']//div[contains(@class,'title')]//span[contains(text(),'" +…
vic
  • 217
  • 1
  • 7
  • 18
2
votes
0 answers

WebDriverException: java.lang.reflect.InvocationTargetException - Selenium RemoteWebDriver

I use Selenium to run a desktop app that has a Web view. Two days ago, my process worked just fine and my tests were running, but I must have done something with my manual testing that changed files on my computer or something changed with files I…
2
votes
1 answer

Remote WebDriver does not get initialized if i try to make my WebDriver threadSafe

I am trying to make my WebDriver threadSafe but when i run the test i get the nullPointerException. I then checked if my remote WebDriver get initialized but it doesn't and am not sure where am going wrong. I am using help from online to make my…
2
votes
2 answers

Selenium not working with Internet Explorer on Remote Machine unless logged in

I am using Selenium IE WebDriver (version 2.46 latest) in order to perform my tests on IE. The setup is: I am using Jenkins to trigger my tests the IE is on a remote virtual machine where also the tests are placed and executed The problem is that…
2
votes
0 answers

Firefox driver not working in android

I want to run my Webpage UI testing in firefox browser in android device, for this i need to get firefox driver, so that using that driver i can perform certain actions in the webpage. In my case, initially i am able to open the firefox browser by…
2
votes
1 answer

how can I change my waitDriver to overcome `StaleElementReferenceException: stale element reference: element is not attached to the page document`

I run my automation (cucumber, junit, selenium chrome web-driver). when I run locally, the test passes. But when I'm using remote-web-driver to run on another machine, I usually (not always), get this error while trying to get the src of an image: …
Elad Benda2
  • 13,852
  • 29
  • 82
  • 157
2
votes
1 answer

Running two instance of ie/firefox browser through selenium remote webdriver

My scenario is, I will launch a instance of a browser and perform some operations and then without closing current browser new browser of same type will be opened and verification needs to be done. Webdriver driver =…
Deva
  • 21
  • 1
  • 2
  • 6
2
votes
1 answer

Error forwarding the new session: Selenium Grid 2

I have taken latest Selenium Server which is 2.45.0 from here. Followed the documentation and started the hub with the following command java -jar selenium-server-standalone-2.45.0.jar -role hub -hubConfig HubConfigFile.json And, the JSon file…
Saifur
  • 16,081
  • 6
  • 49
  • 73
2
votes
1 answer

How to declare two nodes while creating a RemoteWebDriver?

Here I have created a hub and a Node and I want to create another node. How can I initialize my RemoteWebdriver with multiple nodes. public void setUp() throws MalformedURLException{ baseUrl="http://10.77.16.133/cpos-alttech/"; …