File tree Expand file tree Collapse file tree 4 files changed +20
-4
lines changed
website_and_docs/content/documentation/webdriver/elements Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -469,6 +469,10 @@ const emailElement = await driver.findElements(By.xpath('//input[@name="email_in
469
469
const nameAttribute = await emailElement.getAttribute("name");
470
470
{{< /tab >}}
471
471
{{< 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")
473
477
{{< /tab >}}
474
478
{{< /tabpane >}}
Original file line number Diff line number Diff line change @@ -460,6 +460,10 @@ const emailElement = await driver.findElements(By.xpath('//input[@name="email_in
460
460
const nameAttribute = await emailElement.getAttribute("name");
461
461
{{< /tab >}}
462
462
{{< 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")
464
468
{{< /tab >}}
465
469
{{< /tabpane >}}
Original file line number Diff line number Diff line change @@ -415,6 +415,10 @@ const emailElement = await driver.findElements(By.xpath('//input[@name="email_in
415
415
const nameAttribute = await emailElement.getAttribute("name");
416
416
{{< /tab >}}
417
417
{{< 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")
419
423
{{< /tab >}}
420
424
{{< /tabpane >}}
Original file line number Diff line number Diff line change @@ -449,6 +449,10 @@ const emailElement = await driver.findElements(By.xpath('//input[@name="email_in
449
449
const nameAttribute = await emailElement.getAttribute("name");
450
450
{{< /tab >}}
451
451
{{< 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")
453
457
{{< /tab >}}
454
458
{{< /tabpane >}}
You can’t perform that action at this time.
0 commit comments