From 82e5bbe2a257b5e3750fd3969699ed01d0857c86 Mon Sep 17 00:00:00 2001 From: Andrew Zipperer Date: Sun, 6 Oct 2024 10:39:18 -0500 Subject: [PATCH] Edit code reference (L18->L19) to align Python example with others On page https://www.selenium.dev/documentation/webdriver/getting_started/first_script/ in section "7. Request element information" Python example shows getting message element ```python3 message = driver.find_element(by=By.ID, value="message") ``` instead of getting message element information ```python3 text = message.text ``` The examples for other programming languages show getting the `text` attribute of the `message` element. And the examples for Python in other spoken languages show getting the `text` attribute of the `message` element. This commit changes the code reference to the Python file from L18 to L19 in the English markdown file. This makes the Python example show getting the `text` attribute from the `message` element. After this change: - the Python example is like the examples for other programming languages - the Python example on first_script.en.md is like the Python example for these: first_script.{zh-cn,pt-br,ja}.md --- .../documentation/webdriver/getting_started/first_script.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 4cd302fc4e8a..792157294577 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 @@ -183,7 +183,7 @@ Elements store a lot of [information that can be requested]({{< ref "/documentat {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L27" >}} {{< /tab >}} {{< tab header="Python" >}} -{{< gh-codeblock path="examples/python/tests/getting_started/first_script.py#L18" >}} +{{< gh-codeblock path="examples/python/tests/getting_started/first_script.py#L19" >}} {{< /tab >}} {{< tab header="CSharp" >}} {{< gh-codeblock path="examples/dotnet/SeleniumDocs/GettingStarted/FirstScript.cs#L26" >}}