Skip to content
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

Added Java Example to Selenium Manager #1966

Open
wants to merge 11 commits into
base: trunk
Choose a base branch
from
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();
}

}
7 changes: 5 additions & 2 deletions website_and_docs/content/documentation/selenium_manager.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
### Implementing Selenium Manager in Your Scripts

{{< tabpane text=true >}}
{{< tab header="Java" >}}
{{< badge-code >}}
{{% tab header="Java" %}}
**Previously**
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/selenium_manager/usage.java#L10-L15" >}}
**Selenium Manager**
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/selenium_manager/usage.java#L18-L22" >}}
{{< /tab >}}
{{% tab header="Python" %}}
**Previously**
Expand Down
7 changes: 5 additions & 2 deletions website_and_docs/content/documentation/selenium_manager.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
### Implementing Selenium Manager in Your Scripts

{{< tabpane text=true >}}
{{< tab header="Java" >}}
{{< badge-code >}}
{{% tab header="Java" %}}
**Previously**
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/selenium_manager/usage.java#L10-L15" >}}
**Selenium Manager**
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/selenium_manager/usage.java#L18-L22" >}}
{{< /tab >}}
{{% tab header="Python" %}}
**Previously**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
### Implementing Selenium Manager in Your Scripts

{{< tabpane text=true >}}
{{< tab header="Java" >}}
{{< badge-code >}}
{{% tab header="Java" %}}
**Previously**
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/selenium_manager/usage.java#L10-L15" >}}
**Selenium Manager**
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/selenium_manager/usage.java#L18-L22" >}}
{{< /tab >}}
{{% tab header="Python" %}}
**Previously**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,11 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
### Implementing Selenium Manager in Your Scripts

{{< tabpane text=true >}}
{{< tab header="Java" >}}
{{< badge-code >}}
{{% tab header="Java" %}}
**Previously**
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/selenium_manager/usage.java#L10-L15" >}}
**Selenium Manager**
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/selenium_manager/usage.java#L18-L22" >}}
{{< /tab >}}
{{% tab header="Python" %}}
**Previously**
Expand Down