-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Added Java Example to Selenium Manager #1966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
harsha509
merged 13 commits into
SeleniumHQ:trunk
from
shbenzer:java-example-selenium-manager
Jan 6, 2025
Merged
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0d35913
Added Java Example
shbenzer be9ad19
Merge branch 'trunk' into java-example-selenium-manager
shbenzer e2a4be2
Merge branch 'trunk' into java-example-selenium-manager
shbenzer 0e5dae2
Merge branch 'trunk' into java-example-selenium-manager
shbenzer bd02246
Merge branch 'trunk' into java-example-selenium-manager
shbenzer d27386a
Merge branch 'trunk' into java-example-selenium-manager
shbenzer a3784f7
Merge branch 'trunk' into java-example-selenium-manager
shbenzer 1211301
Merge branch 'trunk' into java-example-selenium-manager
shbenzer 3a26cf0
Merge branch 'trunk' into java-example-selenium-manager
shbenzer b183ef8
Merge branch 'trunk' into java-example-selenium-manager
harsha509 e251d0b
Update examples/java/src/test/java/dev/selenium/selenium_manager/usag…
shbenzer bc692eb
Merge branch 'trunk' into java-example-selenium-manager
harsha509 f1ae84f
[java] fix code sample
harsha509 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
examples/java/src/test/java/dev/selenium/selenium_manager/usage.java
This file contains hidden or 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 usage { | ||
|
||
@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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.