This folder contains a sample client side Selenium test for desktop browsers in BitBar Cloud.
To run the sample, go to https://cloud.bitbar.com/ and use a valid Bitbar API key.
This folder contains the following files:
-
src/test/java/com/bitbar/selenium/BitbarSelenium.javais the Java sample test. -
pom.xmldefines the Maven project and pulls the Selenium Java dependency used by the sample.
- Java 8 or newer
- Maven 3.6 or newer
- A valid Bitbar API key
Add your BitBar Key here in BitbarSelenium.java:-
bitbarOptions.put("apiKey", "<insert your Bitbar API key here>");
From this folder, run:
mvn -q -DskipTests test-compile org.codehaus.mojo:exec-maven-plugin:3.6.0:java \
-Dexec.mainClass=com.bitbar.selenium.BitbarSelenium \
-Dexec.classpathScope=testA successful run prints output similar to:
Bitbar - Test Page for Samples
Bitbar