@@ -264,10 +264,10 @@ For this reason, Selenium has two precise methods to get these values: getDomAtt
264264{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/elements/InformationTest.java#L60-L71" >}}
265265{{< /tab >}}
266266 {{< tab header="Python" text=true >}}
267- {{< gh-codeblock path="/examples/python/tests/elements/test_information.py#L44-L46 " >}}
267+ {{< gh-codeblock path="/examples/python/tests/elements/test_information.py#L44-L53 " >}}
268268 {{< /tab >}}
269269{{< tab header="CSharp" text=true >}}
270- {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L58-L62 " >}}
270+ {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Elements/InformationTest.cs#L58-L69 " >}}
271271{{< /tab >}}
272272{{< tab header="Ruby" text=true >}}
273273{{< gh-codeblock path="/examples/ruby/spec/elements/information_spec.rb#L48">}}
@@ -276,10 +276,18 @@ For this reason, Selenium has two precise methods to get these values: getDomAtt
276276{{< gh-codeblock path="/examples/javascript/test/elements/information.spec.js#L55-L68">}}
277277{{< /tab >}}
278278 {{< tab header="Kotlin" >}}
279+ // FetchAttributes
279280// Navigate to URL
280281driver.get("https://www.selenium.dev/selenium/web/inputs.html ")
281282
282- //fetch the value property associated with the textbox
283+ // fetch the value property associated with the textbox
283284val attr = driver.findElement(By.name("email_input")).getAttribute("value")
285+
286+ // New in Selenium 4.27+
287+ // fetches the DOM attribute exactly as written in the HTML source
288+ val domAttribute = driver.findElement(By.name("email_input")).getDomAttribute("name")
289+
290+ // fetches the live property value from the DOM object (may differ at runtime)
291+ val domProperty = driver.findElement(By.name("email_input")).getDomProperty("name")
284292 {{< /tab >}}
285293{{< /tabpane >}}
0 commit comments