This is a project that demonstrates the following:
- Karate for Web-Browser automation using the W3C WebDriver Protocol
- AWS DeviceFarm (for desktop browser testing) as a remote WebDriver instance
- The use of a custom
Target
implementation that abstracts the code to start a WebDriver session out of your test. It does the following:- uses the AWS DeviceFarm SDK to provision a DeviceFarm URL / instance
- shapes the
webDriverSession
and other driver config. - the code can be viewed here:
DeviceFarmTarget.java
- Follow the instructions here to create a DeviceFarm project on AWS and set up your AWS access and secret keys in your environment.
- Change the
urn
inkarate-config.js
to match the DeviceFarm URN of the DeviceFarm project.
Now you can run SearchRunner.java
as a JUnit test.