Skip to content

Commit c37eb29

Browse files
added get attribute for kotlin (SeleniumHQ#1372)
* added code for isdisplayed kotlin * added get attribute for kotlin [deploy site] --------- Co-authored-by: Diego Molina <[email protected]>
1 parent 310b482 commit c37eb29

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,10 @@ const emailElement = await driver.findElements(By.xpath('//input[@name="email_in
469469
const nameAttribute = await emailElement.getAttribute("name");
470470
{{< /tab >}}
471471
{{< tab header="Kotlin" >}}
472-
// Help us with a PR for code sample
472+
// Navigate to URL
473+
driver.get("https://www.selenium.dev/selenium/web/inputs.html")
474+
475+
//fetch the value property associated with the textbox
476+
val attr = driver.findElement(By.name("email_input")).getAttribute("value")
473477
{{< /tab >}}
474478
{{< /tabpane >}}

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,10 @@ const emailElement = await driver.findElements(By.xpath('//input[@name="email_in
460460
const nameAttribute = await emailElement.getAttribute("name");
461461
{{< /tab >}}
462462
{{< tab header="Kotlin" >}}
463-
// Help us with a PR for code sample
463+
// Navigate to URL
464+
driver.get("https://www.selenium.dev/selenium/web/inputs.html")
465+
466+
//fetch the value property associated with the textbox
467+
val attr = driver.findElement(By.name("email_input")).getAttribute("value")
464468
{{< /tab >}}
465469
{{< /tabpane >}}

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,10 @@ const emailElement = await driver.findElements(By.xpath('//input[@name="email_in
415415
const nameAttribute = await emailElement.getAttribute("name");
416416
{{< /tab >}}
417417
{{< tab header="Kotlin" >}}
418-
// Help us with a PR for code sample
418+
// Navigate to URL
419+
driver.get("https://www.selenium.dev/selenium/web/inputs.html")
420+
421+
//fetch the value property associated with the textbox
422+
val attr = driver.findElement(By.name("email_input")).getAttribute("value")
419423
{{< /tab >}}
420424
{{< /tabpane >}}

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,10 @@ const emailElement = await driver.findElements(By.xpath('//input[@name="email_in
449449
const nameAttribute = await emailElement.getAttribute("name");
450450
{{< /tab >}}
451451
{{< tab header="Kotlin" >}}
452-
// Help us with a PR for code sample
452+
// Navigate to URL
453+
driver.get("https://www.selenium.dev/selenium/web/inputs.html")
454+
455+
//fetch the value property associated with the textbox
456+
val attr = driver.findElement(By.name("email_input")).getAttribute("value")
453457
{{< /tab >}}
454458
{{< /tabpane >}}

0 commit comments

Comments
 (0)