Skip to content

Commit dd52333

Browse files
committed
Fix inconsistency in JS code snippets [deploy site] Fixes #1680
1 parent d315d30 commit dd52333

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

examples/javascript/test/waits/waits.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ suite(function (env) {
4747
await driver.get('https://www.selenium.dev/selenium/web/dynamic.html');
4848
let revealed = await driver.findElement(By.id("revealed"));
4949
await driver.findElement(By.id("reveal")).click();
50-
await driver.wait(until.elementIsVisible(revealed), 2000);
50+
await driver.wait(until.elementIsDisabled(revealed), 2000);
5151
await revealed.sendKeys("Displayed");
5252
assert.equal(await revealed.getAttribute("value"), "Displayed")
5353
})

website_and_docs/content/documentation/webdriver/waits.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Solving our example with an implicit wait looks like this:
7979
{{< gh-codeblock path="examples/ruby/spec/waits/waits_spec.rb#L28" >}}
8080
{{< /tab >}}
8181
{{< tab header="JavaScript" >}}
82-
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L37-L41" >}}
82+
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L37" >}}
8383
{{< /tab >}}
8484
{{< tab header="Kotlin" >}}
8585
{{< badge-code >}}
@@ -115,7 +115,7 @@ This example shows the condition being waited for as a _lambda_. Python also sup
115115
{{< /tab >}}
116116
{{% tab header="JavaScript" %}}
117117
JavaScript also supports [Expected Conditions]({{< ref "support_features/expected_conditions" >}})
118-
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L47-L51" >}}
118+
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L50" >}}
119119
{{% /tab %}}
120120
{{< tab header="Kotlin" >}}
121121
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/waits.ja.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Solving our example with an implicit wait looks like this:
7979
{{< gh-codeblock path="examples/ruby/spec/waits/waits_spec.rb#L28" >}}
8080
{{< /tab >}}
8181
{{< tab header="JavaScript" >}}
82-
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L37-L41" >}}
82+
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L37" >}}
8383
{{< /tab >}}
8484
{{< tab header="Kotlin" >}}
8585
{{< badge-code >}}
@@ -115,7 +115,7 @@ This example shows the condition being waited for as a _lambda_. Python also sup
115115
{{< /tab >}}
116116
{{% tab header="JavaScript" %}}
117117
JavaScript also supports [Expected Conditions]({{< ref "support_features/expected_conditions" >}})
118-
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L47-L51" >}}
118+
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L50" >}}
119119
{{% /tab %}}
120120
{{< tab header="Kotlin" >}}
121121
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/waits.pt-br.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Solving our example with an implicit wait looks like this:
7979
{{< gh-codeblock path="examples/ruby/spec/waits/waits_spec.rb#L28" >}}
8080
{{< /tab >}}
8181
{{< tab header="JavaScript" >}}
82-
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L37-L41" >}}
82+
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L37" >}}
8383
{{< /tab >}}
8484
{{< tab header="Kotlin" >}}
8585
{{< badge-code >}}
@@ -115,7 +115,7 @@ This example shows the condition being waited for as a _lambda_. Python also sup
115115
{{< /tab >}}
116116
{{% tab header="JavaScript" %}}
117117
JavaScript also supports [Expected Conditions]({{< ref "support_features/expected_conditions" >}})
118-
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L47-L51" >}}
118+
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L50" >}}
119119
{{% /tab %}}
120120
{{< tab header="Kotlin" >}}
121121
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/waits.zh-cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Solving our example with an implicit wait looks like this:
7979
{{< gh-codeblock path="examples/ruby/spec/waits/waits_spec.rb#L28" >}}
8080
{{< /tab >}}
8181
{{< tab header="JavaScript" >}}
82-
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L37-L41" >}}
82+
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L37" >}}
8383
{{< /tab >}}
8484
{{< tab header="Kotlin" >}}
8585
{{< badge-code >}}
@@ -115,7 +115,7 @@ This example shows the condition being waited for as a _lambda_. Python also sup
115115
{{< /tab >}}
116116
{{% tab header="JavaScript" %}}
117117
JavaScript also supports [Expected Conditions]({{< ref "support_features/expected_conditions" >}})
118-
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L47-L51" >}}
118+
{{< gh-codeblock path="examples/javascript/test/waits/waits.spec.js#L50" >}}
119119
{{% /tab %}}
120120
{{< tab header="Kotlin" >}}
121121
{{< badge-code >}}

0 commit comments

Comments
 (0)