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" >}} 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" >}}