WebDriver endpoints let Ranorex Studio execute tests against a Selenium or Appium WebDriver infrastructure by connecting to a running server.
Preparation
Before adding the endpoint:
- Set up your WebDriver infrastructure.
- Start the server and note its address.
Selenium WebDriver
- Setting up a Selenium infrastructure is covered in Selenium WebDriver integration.
Appium WebDriver
- On Appium, Ranorex Studio currently supports only mobile web tests.
- For help with setting up an Appium infrastructure, please refer to the official Appium documentation.
- Also, make sure you set the command timeout to at least 30 seconds in the plugin settings for WebDriver.
Add an endpoint for WebDriver
- Open the endpoint list.
- In an empty endpoint list, click Add endpoint. Or, in the list that is not empty, click +.
- Select WebDriver.
-
Enter:
- A name for the endpoint.
- The server address.
- Click Test connection to see if a connection can be established.
If the test fails, check that your server address is correct and that the server is running. - Click Add endpoint and Complete setup.
- The new WebDriver endpoint appears in the endpoint list.
Endpoint configurations tell a Selenium WebDriver endpoint how to behave during execution. Selenium calls these characteristics capabilities (OS, browser, browser version, etc.). In Ranorex Studio, the complete set is an endpoint configuration.
Endpoint configurations make it possible to easily execute tests in a Selenium grid on multiple different system configurations without actually needing to have any of these systems present.
To add a configuration to an endpoint:
- Click the symbol to the right of a Selenium WebDriver endpoint.
- Click View details.
- Click Add new configuration.
- Endpoint information showing name, connection status, and server address.
- List of currently running browsers with browser name and URL.
Specify the endpoint configuration
- Enter a name.
- (Optional) Enter a description.
-
Enter the configuration, i.e., the capabilities definition, as JSON.
Make sure it conforms to the requirements of your Selenium Grid provider. Selenium provides a list of capabilities. In the screenshot, the capabilities JSON conforms to the requirements for Sauce Labs. -
Click Save to confirm. The configuration appears in the endpoint details.
Next steps
- Generate capabilities quickly: Capabilities configurator
- Execute across multiple capability sets in parallel: Ranorex Parallel Runner
- General endpoint actions (automation root, details): Endpoint settings