File tree 5 files changed +22
-25
lines changed
website_and_docs/content/documentation/webdriver/interactions
5 files changed +22
-25
lines changed Original file line number Diff line number Diff line change 28
28
diff-lcs (>= 1.2.0 , < 2.0 )
29
29
rspec-support (~> 3.13.0 )
30
30
rspec-support (3.13.0 )
31
- rubocop (1.63.2 )
31
+ rubocop (1.63.3 )
32
32
json (~> 2.3 )
33
33
language_server-protocol (>= 3.17.0 )
34
34
parallel (~> 1.10 )
Original file line number Diff line number Diff line change @@ -242,14 +242,13 @@ Opens a new tab and switches to new tab:
242
242
Opens a new window and switches to new window:
243
243
{{< gh-codeblock path="/examples/ruby/spec/interactions/windows_spec.rb#L15" >}}
244
244
{{% /tab %}}
245
- {{< tab header="JavaScript" >}}
246
- // Opens a new tab and switches to new tab
247
- await driver.switchTo().newWindow('tab');
248
-
249
- // Opens a new window and switches to new window
250
- await driver.switchTo().newWindow('window');
245
+ {{< tab header="JavaScript" text=true >}}
246
+ Opens a new tab and switches to new tab
247
+ {{< gh-codeblock path="examples/javascript/test/interactions/windows.spec.js#L70" >}}
251
248
252
- {{< /tab >}}
249
+ Opens a new window and switches to new window:
250
+ {{< gh-codeblock path="examples/javascript/test/interactions/windows.spec.js#L75" >}}
251
+ {{< /tab >}}
253
252
{{< tab header="Kotlin" >}}
254
253
// Opens a new tab and switches to new tab
255
254
driver.switchTo().newWindow(WindowType.TAB)
Original file line number Diff line number Diff line change @@ -232,14 +232,13 @@ Opens a new tab and switches to new tab
232
232
Opens a new window and switches to new window
233
233
{{< gh-codeblock path="/examples/ruby/spec/interactions/windows_spec.rb#L15" >}}
234
234
{{% /tab %}}
235
- {{< tab header="JavaScript" >}}
236
- // Opens a new tab and switches to new tab
237
- await driver.switchTo().newWindow('tab');
238
-
239
- // Opens a new window and switches to new window
240
- await driver.switchTo().newWindow('window');
235
+ {{< tab header="JavaScript" text=true >}}
236
+ Opens a new tab and switches to new tab
237
+ {{< gh-codeblock path="examples/javascript/test/interactions/windows.spec.js#L70" >}}
241
238
242
- {{< /tab >}}
239
+ Opens a new window and switches to new window:
240
+ {{< gh-codeblock path="examples/javascript/test/interactions/windows.spec.js#L75" >}}
241
+ {{< /tab >}}
243
242
{{< tab header="Kotlin" >}}
244
243
// Opens a new tab and switches to new tab
245
244
driver.switchTo().newWindow(WindowType.TAB)
Original file line number Diff line number Diff line change @@ -238,14 +238,13 @@ Opens a new tab and switches to new tab
238
238
Opens a new window and switches to new window
239
239
{{< gh-codeblock path="/examples/ruby/spec/interactions/windows_spec.rb#L15" >}}
240
240
{{% /tab %}}
241
- {{< tab header="JavaScript" >}}
242
- // Opens a new tab and switches to new tab
243
- await driver.switchTo().newWindow('tab');
244
-
245
- // Opens a new window and switches to new window
246
- await driver.switchTo().newWindow('window');
241
+ {{< tab header="JavaScript" text=true >}}
242
+ Opens a new tab and switches to new tab
243
+ {{< gh-codeblock path="examples/javascript/test/interactions/windows.spec.js#L70" >}}
247
244
248
- {{< /tab >}}
245
+ Opens a new window and switches to new window:
246
+ {{< gh-codeblock path="examples/javascript/test/interactions/windows.spec.js#L75" >}}
247
+ {{< /tab >}}
249
248
{{< tab header="Kotlin" >}}
250
249
// Opens a new tab and switches to new tab
251
250
driver.switchTo().newWindow(WindowType.TAB)
Original file line number Diff line number Diff line change @@ -225,12 +225,12 @@ driver.SwitchTo().NewWindow(WindowType.Window)
225
225
打开一个新窗口并切换到新窗口
226
226
{{< gh-codeblock path="/examples/ruby/spec/interactions/windows_spec.rb#L15" >}}
227
227
{{% /tab %}}
228
- {{< tab header="JavaScript" >}}
228
+ {{< tab header="JavaScript" text=true >}}
229
229
// 打开新标签页并切换到新标签页
230
- await driver.switchTo().newWindow('tab');
230
+ {{< gh-codeblock path="examples/javascript/test/interactions/windows.spec.js#L70" >}}
231
231
232
232
// 打开一个新窗口并切换到新窗口
233
- await driver.switchTo().newWindow('window');
233
+ {{< gh-codeblock path="examples/javascript/test/interactions/windows.spec.js#L75" >}}
234
234
235
235
{{< /tab >}}
236
236
{{< tab header="Kotlin" >}}
You can’t perform that action at this time.
0 commit comments