Initial configuration
Mobitru implements infrastructure to support, scale, and integrate your Selenium tests with minimal effort. To run your Selenium tests in the Mobitru, you need to change the Selenium remote URL in your driver.
- Please, read more about Selenium
- Also, look at the REST API we provide to integrate with CI or Test Automation Framework.
Access key
You can generate an Access key using the following instruction – Access key
Billing unit
The billing unit is your team’s unique identifier, or just the word “personal” in the case of an individual account.
More information can be found here.
Run Selenium tests against Mobitru over HTTPS
- Point your RemoteWebDriver to Mobitru
- https://${billing_unit}:${your_access_token}@browserhub-us.mobitru.com/wd/hub
- Example for Selenium Java client
-
new RemoteWebDriver(new URL("https://"+BILLING_UNIT+":" + ACCESS_TOKEN + "@browserhub-us.mobitru.com/wd/hub"), capabilities);
-
Details about Selenium tests
Read more about Selenium Browser Options
How it works
- A browser session will be automatically created according to Browser Options you set when creating RemoteWebDriver, e.g. “browserName” or “browserVersion”. If the “browserVersion” is not passed, then the latest available browser version will be used. The session will not be created if the specified version is not available.
- For example, if you want to run on the latest Firefox you can just set your browser option
browserName = firefox
- Mobitru starts to support a new browser version a month after its official release.
- For example, if you want to run on the latest Firefox you can just set your browser option
- Once
driver.quit()
will be called, the session will be terminated and the browser slot will be released.- The session will be terminated if there is no activity within 1 minute after the last command.