Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.DS_Store
/target/
/.idea
/SeleniumJavaDemoApp.iml
*.iml
5 changes: 3 additions & 2 deletions src/test/java/com/applitools/quickstarts/AppTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.applitools.eyes.selenium.fluent.Target;
import com.applitools.eyes.visualgrid.model.DeviceName;
import com.applitools.eyes.visualgrid.model.ScreenOrientation;
import com.applitools.eyes.visualgrid.services.RunnerOptions;
import com.applitools.eyes.visualgrid.services.VisualGridRunner;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
Expand All @@ -24,7 +25,8 @@ public static void main(String[] args) {
WebDriver webDriver = new ChromeDriver();

// Create a runner with concurrency of 1
VisualGridRunner runner = new VisualGridRunner(1);
RunnerOptions runnerOptions = new RunnerOptions().testConcurrency(1);
VisualGridRunner runner = new VisualGridRunner(runnerOptions);

// Create Eyes object with the runner, meaning it'll be a Visual Grid eyes.
Eyes eyes = new Eyes(runner);
Expand All @@ -36,7 +38,6 @@ public static void main(String[] args) {
// but then change the above URL to https://demo.applitools.com/index_v2.html
// (for the 2nd run)
ultraFastTest(webDriver, eyes);

} finally {
tearDown(webDriver, runner);
}
Expand Down