File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
examples/javascript/test/waits
website_and_docs/content/documentation/webdriver Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ suite(function (env) {
47
47
await driver . get ( 'https://www.selenium.dev/selenium/web/dynamic.html' ) ;
48
48
let revealed = await driver . findElement ( By . id ( "revealed" ) ) ;
49
49
await driver . findElement ( By . id ( "reveal" ) ) . click ( ) ;
50
- await driver . wait ( until . elementIsVisible ( revealed ) , 2000 ) ;
50
+ await driver . wait ( until . elementIsDisabled ( revealed ) , 2000 ) ;
51
51
await revealed . sendKeys ( "Displayed" ) ;
52
52
assert . equal ( await revealed . getAttribute ( "value" ) , "Displayed" )
53
53
} )
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ Solving our example with an implicit wait looks like this:
79
79
{{< gh-codeblock path="examples/ruby/spec/waits/waits_spec.rb#L28" >}}
80
80
{{< /tab >}}
81
81
{{< 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" >}}
83
83
{{< /tab >}}
84
84
{{< tab header="Kotlin" >}}
85
85
{{< badge-code >}}
@@ -115,7 +115,7 @@ This example shows the condition being waited for as a _lambda_. Python also sup
115
115
{{< /tab >}}
116
116
{{% tab header="JavaScript" %}}
117
117
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 " >}}
119
119
{{% /tab %}}
120
120
{{< tab header="Kotlin" >}}
121
121
{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ Solving our example with an implicit wait looks like this:
79
79
{{< gh-codeblock path="examples/ruby/spec/waits/waits_spec.rb#L28" >}}
80
80
{{< /tab >}}
81
81
{{< 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" >}}
83
83
{{< /tab >}}
84
84
{{< tab header="Kotlin" >}}
85
85
{{< badge-code >}}
@@ -115,7 +115,7 @@ This example shows the condition being waited for as a _lambda_. Python also sup
115
115
{{< /tab >}}
116
116
{{% tab header="JavaScript" %}}
117
117
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 " >}}
119
119
{{% /tab %}}
120
120
{{< tab header="Kotlin" >}}
121
121
{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ Solving our example with an implicit wait looks like this:
79
79
{{< gh-codeblock path="examples/ruby/spec/waits/waits_spec.rb#L28" >}}
80
80
{{< /tab >}}
81
81
{{< 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" >}}
83
83
{{< /tab >}}
84
84
{{< tab header="Kotlin" >}}
85
85
{{< badge-code >}}
@@ -115,7 +115,7 @@ This example shows the condition being waited for as a _lambda_. Python also sup
115
115
{{< /tab >}}
116
116
{{% tab header="JavaScript" %}}
117
117
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 " >}}
119
119
{{% /tab %}}
120
120
{{< tab header="Kotlin" >}}
121
121
{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ Solving our example with an implicit wait looks like this:
79
79
{{< gh-codeblock path="examples/ruby/spec/waits/waits_spec.rb#L28" >}}
80
80
{{< /tab >}}
81
81
{{< 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" >}}
83
83
{{< /tab >}}
84
84
{{< tab header="Kotlin" >}}
85
85
{{< badge-code >}}
@@ -115,7 +115,7 @@ This example shows the condition being waited for as a _lambda_. Python also sup
115
115
{{< /tab >}}
116
116
{{% tab header="JavaScript" %}}
117
117
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 " >}}
119
119
{{% /tab %}}
120
120
{{< tab header="Kotlin" >}}
121
121
{{< badge-code >}}
You can’t perform that action at this time.
0 commit comments