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
6
votes
2 answers

Parameterized Selenium Tests in Parallel with TestNG

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…
peetya
  • 3,578
  • 2
  • 16
  • 30
6
votes
2 answers

selenium remotewebdriver with python - performance logging?

I'm trying to get back some performance log info from a remote webdriver instance. I'm using the Python Selenium bindings. From what I can see, this is information I should be able to get back. Think it may only be available with ChromeDriver. I'm…
6
votes
3 answers

How to create valid .app or .zip archive for automating iOS with Appium?

When testing native Objective-C applications, Appium requires a valid .app package, or a .zip archived .app package, in order to run automation against with Instruments. But I'm doing something terribly wrong and running up against a brick wall in…
Wulf
  • 379
  • 1
  • 6
  • 16
5
votes
2 answers

How to upload a file by transfering the file from the local machine to the remote web server using Selenium Grid

File Upload with a Selenium Grid: Code import java.net.MalformedURLException; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import…
5
votes
4 answers

Change language on Firefox with Selenium Python

I am trying to change the language of Selenium Webdriver Firefox from English to Spanish. I have the following code in place: def get_webdriver(attempts=3, timeout=60): firefox_profile = webdriver.FirefoxProfile() …
Druhin Bala
  • 772
  • 7
  • 12
5
votes
1 answer

Run Selenium Python Script on Remote Server

I've built a web scraper using Selenium that I need to run when my local machine is sleeping and not connected to a network. I have a remote server that I can use to run this script, but I'm having a hard job conceptualizing how this will work. Can…
5
votes
2 answers

Remote Webdriver Capabilities - user agent for Mobile

I was working on some mobile Web automation testing using Selenium Webdriver and Ruby. Now I need to pass user agent along with Remote Webdriver Capabilities i am already passing. Is there any way i can set user agent for Mobile Web ? I am setting…
Sunilkumar V
  • 912
  • 2
  • 8
  • 28
4
votes
2 answers

Reducing screenshot taking time on selenium

Taking screenshot is very fast if the code is executed on a server at localhost, less than a second (around 400-500ms): private RemoteWebDriver driver; private DesiredCapabilities dc = new DesiredCapabilities(); @Before public void setUp() throws…
frianH
  • 7,295
  • 6
  • 20
  • 45
4
votes
1 answer

UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server with Selenium Grid

Error in opening new driver window: org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. server log: Forwarding newSession on…
4
votes
0 answers

Webdriver is not capturing the http response body

I have enabled the PERFORMANCE logging in my Chrome WebDriver. Its capturing request and response traffic. But the body of the response is missing, capturing only headers, timing info. Response type is Fetch selenium-java version : 3.6 Driver…
4
votes
1 answer

Sending PUT request via HttpClient to Saucelabs not responding

I am trying to send a PUT request to update a job on Saucelabs via their API. However, the following code hangs and I am not sure why. using (var client = new HttpClient()) { var sessionId = Browser.Driver.GetSessionId(); var uri = new…
Muttonchop
  • 353
  • 4
  • 22
4
votes
1 answer

Using FireFoxProfile with RemoteWebDriver, Selenium Grid2, causes Capabilities Exception

I am trying to programmatically create a temporary firefox profile for use in selenium tests with selenium grid2. Here is the code that I am currently running. DesiredCapabilities capabilities = new…
4
votes
4 answers

Unable to connect to Selenium Grid running on AWS EC2

I have a Selenium Grid up and running on an AWS EC2 instance. I would like to connect to this from my local machine using Java to fire off my tests via a RemoteWebDriver, however, I'm unable to connect to the server be it through SSH or the Public…
4
votes
2 answers

ChromeDriver Remote - disable notifications using browserstack

I use selenium on BrowserStack service and I need to disable chrome notifications [ex. on screenshot]. Locally I do it with the following code, but all manuals in Internet didn't help me to get it working on remote ChromeDriver on…
4
votes
2 answers

What is the difference between DesiredCapabilities vs RequiredCapabilities?

Can somebody tell me the difference between the DesiredCapabilities vs RequiredCapabilities in RemoteWebDriver constructor? Here is the link for the…
javanoob
  • 6,070
  • 16
  • 65
  • 88
1
2
3
22 23