-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Java Example to Selenium Manager (#1966)
* Added Java Example * Update examples/java/src/test/java/dev/selenium/selenium_manager/usage.java Co-authored-by: Sri Harsha <[email protected]> * [java] fix code sample --------- Co-authored-by: Sri Harsha <[email protected]> Co-authored-by: Sri Harsha <[email protected]>
- Loading branch information
1 parent
215adae
commit 36ce362
Showing
5 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
examples/java/src/test/java/dev/selenium/selenium_manager/SeleniumManagerUsageDemo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package dev.selenium.selenium_manager; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.openqa.selenium.WebDriver; | ||
import org.openqa.selenium.chrome.ChromeDriver; | ||
|
||
public class SeleniumManagerUsageDemo { | ||
|
||
@Test | ||
public void testSetupWithoutManager() { | ||
System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver"); | ||
WebDriver driver = new ChromeDriver(); | ||
driver.get("https://www.selenium.dev/documentation/selenium_manager/"); | ||
driver.quit(); | ||
} | ||
|
||
@Test | ||
public void testSetupWithManager() { | ||
WebDriver driver = new ChromeDriver(); | ||
driver.get("https://www.selenium.dev/documentation/selenium_manager/"); | ||
driver.quit(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters