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
6 changes: 2 additions & 4 deletions examples/python/tests/getting_started/using_selenium_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@


def test_eight_components():
driver = webdriver.Chrome()

driver.get("https://www.selenium.dev/selenium/web/web-form.html")
driver = setup()

title = driver.title
assert title == "Web form"
Expand All @@ -22,7 +20,7 @@ def test_eight_components():
value = message.text
assert value == "Received!"

driver.quit()
teardown(driver)

def setup():
driver = webdriver.Chrome()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ In your project's `package.json`, add requirement to `dependencies`:
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/UsingSeleniumTest.java#L30-L31" >}}
{{< /tab >}}
{{% tab header="Python" %}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L10-L11" >}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L8-L9" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/GettingStarted/UsingSeleniumTest.cs#L19-L20" >}}
Expand Down Expand Up @@ -177,11 +177,11 @@ In your project's `package.json`, add requirement to `dependencies`:

### Set Up

{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L27-L30" >}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L25-L28" >}}

### Tear Down

{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L32-33" >}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L30-31" >}}

{{% /tab %}}
{{< tab header="CSharp" >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ In your project's `package.json`, add requirement to `dependencies`:
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/UsingSeleniumTest.java#L30-L31" >}}
{{< /tab >}}
{{% tab header="Python" %}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L10-L11" >}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L8-L9" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/GettingStarted/UsingSeleniumTest.cs#L19-L20" >}}
Expand Down Expand Up @@ -173,11 +173,11 @@ In your project's `package.json`, add requirement to `dependencies`:

### Set Up

{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L27-L30" >}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L25-L28" >}}

### Tear Down

{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L32-33" >}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L30-31" >}}

{{% /tab %}}
{{< tab header="CSharp" >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ In your project's `package.json`, adicionar requisito às `dependências`:
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/UsingSeleniumTest.java#L30-L31" >}}
{{< /tab >}}
{{% tab header="Python" %}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L10-L11" >}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L8-L9" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/GettingStarted/UsingSeleniumTest.cs#L19-L20" >}}
Expand Down Expand Up @@ -173,11 +173,11 @@ In your project's `package.json`, adicionar requisito às `dependências`:

### Set Up

{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L27-L30" >}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L25-L28" >}}

### Tear Down

{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L32-33" >}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L30-31" >}}

{{% /tab %}}
{{< tab header="CSharp" >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ In your project's `package.json`, add requirement to `dependencies`:
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/UsingSeleniumTest.java#L30-L31" >}}
{{< /tab >}}
{{% tab header="Python" %}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L10-L11" >}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L8-L9" >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/GettingStarted/UsingSeleniumTest.cs#L19-L20" >}}
Expand Down Expand Up @@ -157,11 +157,11 @@ In your project's `package.json`, add requirement to `dependencies`:

### Set Up

{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L27-L30" >}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L25-L28" >}}

### Tear Down

{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L32-33" >}}
{{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L30-31" >}}

{{% /tab %}}
{{< tab header="CSharp" >}}
Expand Down
Loading