File tree 4 files changed +20
-4
lines changed
website_and_docs/content/documentation/webdriver/elements
4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,11 @@ nature and relationship in the tree to return a value.
38
38
# Help us with a PR for code sample
39
39
{{< /tab >}}
40
40
{{< tab header="JavaScript" >}}
41
- // Help us with a PR for code sample
41
+ // Navigate to url
42
+ await driver.get('https://www.google.com ');
43
+
44
+ // Resolves Promise and returns boolean value
45
+ let result = await driver.findElement(By.css("[ name='btnK'] ")).isDisplayed();
42
46
{{< /tab >}}
43
47
{{< tab header="Kotlin" >}}
44
48
// Help us with a PR for code sample
Original file line number Diff line number Diff line change @@ -38,7 +38,11 @@ nature and relationship in the tree to return a value.
38
38
# Help us with a PR for code sample
39
39
{{< /tab >}}
40
40
{{< tab header="JavaScript" >}}
41
- // Help us with a PR for code sample
41
+ // Navigate to url
42
+ await driver.get('https://www.google.com ');
43
+
44
+ // Resolves Promise and returns boolean value
45
+ let result = await driver.findElement(By.css("[ name='btnK'] ")).isDisplayed();
42
46
{{< /tab >}}
43
47
{{< tab header="Kotlin" >}}
44
48
// Help us with a PR for code sample
Original file line number Diff line number Diff line change @@ -39,7 +39,11 @@ nature and relationship in the tree to return a value.
39
39
# Help us with a PR for code sample
40
40
{{< /tab >}}
41
41
{{< tab header="JavaScript" >}}
42
- // Help us with a PR for code sample
42
+ // Navigate to url
43
+ await driver.get('https://www.google.com ');
44
+
45
+ // Resolves Promise and returns boolean value
46
+ let result = await driver.findElement(By.css("[ name='btnK'] ")).isDisplayed();
43
47
{{< /tab >}}
44
48
{{< tab header="Kotlin" >}}
45
49
// Help us with a PR for code sample
Original file line number Diff line number Diff line change @@ -39,7 +39,11 @@ nature and relationship in the tree to return a value.
39
39
# Help us with a PR for code sample
40
40
{{< /tab >}}
41
41
{{< tab header="JavaScript" >}}
42
- // Help us with a PR for code sample
42
+ // Navigate to url
43
+ await driver.get('https://www.google.com ');
44
+
45
+ // Resolves Promise and returns boolean value
46
+ let result = await driver.findElement(By.css("[ name='btnK'] ")).isDisplayed();
43
47
{{< /tab >}}
44
48
{{< tab header="Kotlin" >}}
45
49
// Help us with a PR for code sample
You can’t perform that action at this time.
0 commit comments