Skip to content

Commit 5b07b27

Browse files
shbenzerharsha509
andauthored
Added Example for Running Python Script to first_script.mds (#1861)[deploy site]
* added code for running first_script.py in python example * added first_script example to all translated languages --------- Co-authored-by: Sri Harsha <[email protected]>
1 parent 36b16c7 commit 5b07b27

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-1
lines changed

examples/python/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,11 @@ pytest
2828
```
2929

3030
> 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
31+
32+
## Execute a specific example
33+
To run a specific Selenium Python example, use the following command:
34+
```bash
35+
python first_script.py
36+
```
37+
38+
Make sure to replace `first_script.py` with the path and name of the example you want to run.

website_and_docs/content/documentation/webdriver/getting_started/first_script.en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ See [Quitting Sessions]({{< ref "../drivers/#quitting-sessions" >}}).
233233
{{< gh-codeblock path="examples/java/README.md#L60" >}}
234234
{{< /tab >}}
235235
{{< tab header="Python" >}}
236+
{{< gh-codeblock path="examples/python/README.md#L35" >}}
236237
{{< badge-code >}}
237238
{{< /tab >}}
238239
{{< tab header="CSharp" >}}

website_and_docs/content/documentation/webdriver/getting_started/first_script.ja.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ See [Quitting Sessions]({{< ref "../drivers/#quitting-sessions" >}}).
236236
{{< gh-codeblock path="examples/java/README.md#L60" >}}
237237
{{< /tab >}}
238238
{{< tab header="Python" >}}
239+
{{< gh-codeblock path="examples/python/README.md#L35" >}}
239240
{{< badge-code >}}
240241
{{< /tab >}}
241242
{{< tab header="CSharp" >}}

website_and_docs/content/documentation/webdriver/getting_started/first_script.pt-br.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ See [Quitting Sessions]({{< ref "../drivers/#quitting-sessions" >}}).
235235
{{< gh-codeblock path="examples/java/README.md#L60" >}}
236236
{{< /tab >}}
237237
{{< tab header="Python" >}}
238+
{{< gh-codeblock path="examples/python/README.md#L35" >}}
238239
{{< badge-code >}}
239240
{{< /tab >}}
240241
{{< tab header="CSharp" >}}

website_and_docs/content/documentation/webdriver/getting_started/first_script.zh-cn.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,10 @@ Selenium所做的一切,
245245

246246
{{< tabpane text=true >}}
247247
{{< tab header="Java" >}}
248-
{{{< gh-codeblock path="examples/java/README.md#L60" >}}
248+
{{< gh-codeblock path="examples/java/README.md#L60" >}}
249249
{{< /tab >}}
250250
{{< tab header="Python" >}}
251+
{{< gh-codeblock path="examples/python/README.md#L35" >}}
251252
{{< badge-code >}}
252253
{{< /tab >}}
253254
{{< tab header="CSharp" >}}

0 commit comments

Comments
 (0)