Skip to content
Merged
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
12 changes: 12 additions & 0 deletions examples/python/tests/selenium_manager/usage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service

def setup_without_selenium_manager():
chrome_service = Service(executable_path='path/to/chrome.exe')
driver = webdriver.Chrome(chrome_service)
return driver

def setup_with_selenium_manager():
driver = webdriver.Chrome()
return driver
23 changes: 23 additions & 0 deletions website_and_docs/content/documentation/selenium_manager.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,29 @@ INFO Driver path: C:\Users\boni\.cache\selenium\chromedriver\win64\117.0.5938
INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\chrome.exe
```

### Implementing Selenium Manager in Your Scripts

{{< tabpane text=true >}}
{{< tab header="Java" >}}
{{< /tab >}}
{{% tab header="Python" %}}
**Previously**
{{< gh-codeblock path="examples/python/tests/selenium_manager/usage.py#L5-L8" >}}
**Selenium Manager**
{{< gh-codeblock path="examples/python/tests/selenium_manager/usage.py#L10-L12" >}}
{{< badge-code >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< /tab >}}
{{< tab header="Ruby" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< /tab >}}
{{< tab header="Kotlin" >}}
{{< badge-code >}}
{{< /tab >}}
{{< /tabpane >}}

## Selenium Grid
Selenium Manager allows you to configure the drivers automatically when setting up Selenium Grid. To that aim, you need to include the argument `--selenium-manager true` in the command to start Selenium Grid. For more details, visit the [Selenium Grid starting page](https://www.selenium.dev/documentation/grid/getting_started/).

Expand Down
23 changes: 23 additions & 0 deletions website_and_docs/content/documentation/selenium_manager.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,29 @@ INFO Driver path: C:\Users\boni\.cache\selenium\chromedriver\win64\117.0.5938
INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\chrome.exe
```

### Implementing Selenium Manager in Your Scripts

{{< tabpane text=true >}}
{{< tab header="Java" >}}
{{< /tab >}}
{{% tab header="Python" %}}
**Previously**
{{< gh-codeblock path="examples/python/tests/selenium_manager/usage.py#L5-L8" >}}
**Selenium Manager**
{{< gh-codeblock path="examples/python/tests/selenium_manager/usage.py#L10-L12" >}}
{{< badge-code >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< /tab >}}
{{< tab header="Ruby" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< /tab >}}
{{< tab header="Kotlin" >}}
{{< badge-code >}}
{{< /tab >}}
{{< /tabpane >}}

## Selenium Grid
Selenium Manager allows you to configure the drivers automatically when setting up Selenium Grid. To that aim, you need to include the argument `--selenium-manager true` in the command to start Selenium Grid. For more details, visit the [Selenium Grid starting page](https://www.selenium.dev/documentation/grid/getting_started/).

Expand Down
23 changes: 23 additions & 0 deletions website_and_docs/content/documentation/selenium_manager.pt-br.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,29 @@ INFO Driver path: C:\Users\boni\.cache\selenium\chromedriver\win64\117.0.5938
INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\chrome.exe
```

### Implementing Selenium Manager in Your Scripts

{{< tabpane text=true >}}
{{< tab header="Java" >}}
{{< /tab >}}
{{% tab header="Python" %}}
**Previously**
{{< gh-codeblock path="examples/python/tests/selenium_manager/usage.py#L5-L8" >}}
**Selenium Manager**
{{< gh-codeblock path="examples/python/tests/selenium_manager/usage.py#L10-L12" >}}
{{< badge-code >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< /tab >}}
{{< tab header="Ruby" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< /tab >}}
{{< tab header="Kotlin" >}}
{{< badge-code >}}
{{< /tab >}}
{{< /tabpane >}}

## Selenium Grid
Selenium Manager allows you to configure the drivers automatically when setting up Selenium Grid. To that aim, you need to include the argument `--selenium-manager true` in the command to start Selenium Grid. For more details, visit the [Selenium Grid starting page](https://www.selenium.dev/documentation/grid/getting_started/).

Expand Down
23 changes: 23 additions & 0 deletions website_and_docs/content/documentation/selenium_manager.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,29 @@ INFO Driver path: C:\Users\boni\.cache\selenium\chromedriver\win64\117.0.5938
INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\chrome.exe
```

### Implementing Selenium Manager in Your Scripts

{{< tabpane text=true >}}
{{< tab header="Java" >}}
{{< /tab >}}
{{% tab header="Python" %}}
**Previously**
{{< gh-codeblock path="examples/python/tests/selenium_manager/usage.py#L5-L8" >}}
**Selenium Manager**
{{< gh-codeblock path="examples/python/tests/selenium_manager/usage.py#L10-L12" >}}
{{< badge-code >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< /tab >}}
{{< tab header="Ruby" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< /tab >}}
{{< tab header="Kotlin" >}}
{{< badge-code >}}
{{< /tab >}}
{{< /tabpane >}}

## Selenium Grid
Selenium Manager allows you to configure the drivers automatically when setting up Selenium Grid. To that aim, you need to include the argument `--selenium-manager true` in the command to start Selenium Grid. For more details, visit the [Selenium Grid starting page](https://www.selenium.dev/documentation/grid/getting_started/).

Expand Down
Loading