What's new: 🔌 Run Selenium WebDriver tests on UIlicious

By Tai Shi Ling | September 14, 2022

If you have existing Selenium WebDriver tests, or tests written with browser automation libraries that use the WebDriver Protocol, you can now run them remotely on UIlicious Testing Grid. This feature is available to all Business plans.

How to connect to UIlicious Testing Grid

Step 1: Log into UIlicious, go to Project Settings (click on the Gear icon), and under the Connect to Webdriver tab, copy your unique Webdriver Connection URL.

Go to the Project Settings page to get your UIlicious Webdriver Connection URL

Step 2: Configure your Selenium WebDriver test to connect to the UIlicious Testing Grid with the URL that you’ve copied. Here's an example for Selenium Java.

ChromeOptions chromeOptions = new ChromeOptions();
WebDriver driver = new RemoteWebDriver(new URL("<UILICIOUS WEBDRIVER URL>"), chromeOptions);
driver.get("http://www.google.com");
driver.quit();

If you are using another library that requires the connection parameters to be configured separately instead of a single URL string, you can refer to the information below:

The user and key for authentication is the Project ID and your Access Key, which is already in the Webdriver Connection URL that you’ve copied, which follows the format:

https://<PROJECTID>:<ACCESSKEY>@webdriver.uilicious.com/wd/hub

Step 3: Configure the browser capabilities

The easiest way to configure the browser capabilities is to use the Webdriver Configuration Generator. Select the desired platform, browser, resolution, and region, and copy the code to setup your test.

Use the Webdriver Configuration Generator to quickly generate the configuration code for your test.

There are more options available for configuring the test browser, to learn more, read the Connect to UIlicious Grid full documentation.

And that’s it! Now you can remotely execute your Selenium Webdriver test on the UIlicious Testing Grid.

About Tai Shi Ling

Cofounder CEO of UIlicious. I've been coding for over a decade. Building delightful user interfaces is my favorite part of building software. I named the product UIlicious because I wanted folks to build UI that was delicious. Corny, I know.

Similar Posts