From 862aed5db786d124c4cb2aa96db40a17d4d9115d Mon Sep 17 00:00:00 2001 From: Simon Benzer Date: Sat, 17 Aug 2024 08:24:39 -0400 Subject: [PATCH 1/2] added code for running first_script.py in python example --- examples/python/README.md | 8 ++++++++ .../webdriver/getting_started/first_script.en.md | 1 + 2 files changed, 9 insertions(+) diff --git a/examples/python/README.md b/examples/python/README.md index db8a216be661..f0aaefb2f8fb 100644 --- a/examples/python/README.md +++ b/examples/python/README.md @@ -28,3 +28,11 @@ pytest ``` > Please keep some patience - If you are doing it for the first time, it will take a little while to verify and download the browser drivers + +## Execute a specific example +To run a specific Selenium Python example, use the following command: +```bash +python first_script.py +``` + +Make sure to replace `first_script.py` with the path and name of the example you want to run. diff --git a/website_and_docs/content/documentation/webdriver/getting_started/first_script.en.md b/website_and_docs/content/documentation/webdriver/getting_started/first_script.en.md index 8b3371e6b020..a970c5da1942 100644 --- a/website_and_docs/content/documentation/webdriver/getting_started/first_script.en.md +++ b/website_and_docs/content/documentation/webdriver/getting_started/first_script.en.md @@ -233,6 +233,7 @@ See [Quitting Sessions]({{< ref "../drivers/#quitting-sessions" >}}). {{< gh-codeblock path="examples/java/README.md#L60" >}} {{< /tab >}} {{< tab header="Python" >}} +{{< gh-codeblock path="examples/python/README.md#L35" >}} {{< badge-code >}} {{< /tab >}} {{< tab header="CSharp" >}} From 9368fa9e762829d45431134767d2e87df0f33903 Mon Sep 17 00:00:00 2001 From: Simon Benzer Date: Sat, 17 Aug 2024 08:31:11 -0400 Subject: [PATCH 2/2] added first_script example to all translated languages --- .../documentation/webdriver/getting_started/first_script.ja.md | 1 + .../webdriver/getting_started/first_script.pt-br.md | 1 + .../webdriver/getting_started/first_script.zh-cn.md | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/website_and_docs/content/documentation/webdriver/getting_started/first_script.ja.md b/website_and_docs/content/documentation/webdriver/getting_started/first_script.ja.md index 0b7ac16d59b2..f0f016dccdfe 100644 --- a/website_and_docs/content/documentation/webdriver/getting_started/first_script.ja.md +++ b/website_and_docs/content/documentation/webdriver/getting_started/first_script.ja.md @@ -236,6 +236,7 @@ See [Quitting Sessions]({{< ref "../drivers/#quitting-sessions" >}}). {{< gh-codeblock path="examples/java/README.md#L60" >}} {{< /tab >}} {{< tab header="Python" >}} +{{< gh-codeblock path="examples/python/README.md#L35" >}} {{< badge-code >}} {{< /tab >}} {{< tab header="CSharp" >}} diff --git a/website_and_docs/content/documentation/webdriver/getting_started/first_script.pt-br.md b/website_and_docs/content/documentation/webdriver/getting_started/first_script.pt-br.md index 0f6384c001b4..2d6b8fa18ec1 100644 --- a/website_and_docs/content/documentation/webdriver/getting_started/first_script.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/getting_started/first_script.pt-br.md @@ -235,6 +235,7 @@ See [Quitting Sessions]({{< ref "../drivers/#quitting-sessions" >}}). {{< gh-codeblock path="examples/java/README.md#L60" >}} {{< /tab >}} {{< tab header="Python" >}} +{{< gh-codeblock path="examples/python/README.md#L35" >}} {{< badge-code >}} {{< /tab >}} {{< tab header="CSharp" >}} diff --git a/website_and_docs/content/documentation/webdriver/getting_started/first_script.zh-cn.md b/website_and_docs/content/documentation/webdriver/getting_started/first_script.zh-cn.md index 999feeaccc98..87e75a44e725 100644 --- a/website_and_docs/content/documentation/webdriver/getting_started/first_script.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/getting_started/first_script.zh-cn.md @@ -245,9 +245,10 @@ Selenium所做的一切, {{< tabpane text=true >}} {{< tab header="Java" >}} -{{{< gh-codeblock path="examples/java/README.md#L60" >}} +{{< gh-codeblock path="examples/java/README.md#L60" >}} {{< /tab >}} {{< tab header="Python" >}} +{{< gh-codeblock path="examples/python/README.md#L35" >}} {{< badge-code >}} {{< /tab >}} {{< tab header="CSharp" >}}