Skip to content

Commit 6ab23be

Browse files
authored
Method in Doc-Getting CSS Value-Python Corrected (SeleniumHQ#1264)
The method for finding element in Python should be "find_element", which now is wrongly spelled as "findElement" in below: https://www.selenium.dev/documentation/webdriver/elements/information #get-css-value All the "information.*.md" files in 4 languages are corrected.
1 parent ff77ef6 commit 6ab23be

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

website_and_docs/content/documentation/webdriver/elements/information.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ String cssValue = driver.findElement(By.linkText("More information...")).getCssV
310310
driver.get('https://www.example.com')
311311

312312
# Retrieves the computed style property 'color' of linktext
313-
cssValue = driver.findElement(By.LINK_TEXT, "More information...").value_of_css_property('color')
313+
cssValue = driver.find_element(By.LINK_TEXT, "More information...").value_of_css_property('color')
314314

315315
{{< /tab >}}
316316
{{< tab header="CSharp" >}}

website_and_docs/content/documentation/webdriver/elements/information.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ String cssValue = driver.findElement(By.linkText("More information...")).getCssV
306306
driver.get('https://www.example.com')
307307

308308
# Retrieves the computed style property 'color' of linktext
309-
cssValue = driver.findElement(By.LINK_TEXT, "More information...").value_of_css_property('color')
309+
cssValue = driver.find_element(By.LINK_TEXT, "More information...").value_of_css_property('color')
310310

311311
{{< /tab >}}
312312
{{< tab header="CSharp" >}}

website_and_docs/content/documentation/webdriver/elements/information.pt-br.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ String cssValue = driver.findElement(By.linkText("More information...")).getCssV
259259
driver.get('https://www.example.com')
260260

261261
# Retrieves the computed style property 'color' of linktext
262-
cssValue = driver.findElement(By.LINK_TEXT, "More information...").value_of_css_property('color')
262+
cssValue = driver.find_element(By.LINK_TEXT, "More information...").value_of_css_property('color')
263263

264264
{{< /tab >}}
265265
{{< tab header="CSharp" >}}

website_and_docs/content/documentation/webdriver/elements/information.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ String cssValue = driver.findElement(By.linkText("More information...")).getCssV
296296
driver.get('https://www.example.com')
297297

298298
# Retrieves the computed style property 'color' of linktext
299-
cssValue = driver.findElement(By.LINK_TEXT, "More information...").value_of_css_property('color')
299+
cssValue = driver.find_element(By.LINK_TEXT, "More information...").value_of_css_property('color')
300300

301301
{{< /tab >}}
302302
{{< tab header="CSharp" >}}

0 commit comments

Comments
 (0)