Skip to content

Commit 98b7f5a

Browse files
authored
Merge branch 'trunk' into update-nightly-version
2 parents cce119e + 4760e32 commit 98b7f5a

File tree

5 files changed

+22
-25
lines changed

5 files changed

+22
-25
lines changed

examples/ruby/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ GEM
2828
diff-lcs (>= 1.2.0, < 2.0)
2929
rspec-support (~> 3.13.0)
3030
rspec-support (3.13.0)
31-
rubocop (1.63.2)
31+
rubocop (1.63.3)
3232
json (~> 2.3)
3333
language_server-protocol (>= 3.17.0)
3434
parallel (~> 1.10)

website_and_docs/content/documentation/webdriver/interactions/windows.en.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,13 @@ Opens a new tab and switches to new tab:
242242
Opens a new window and switches to new window:
243243
{{< gh-codeblock path="/examples/ruby/spec/interactions/windows_spec.rb#L15" >}}
244244
{{% /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" >}}
251248

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 >}}
253252
{{< tab header="Kotlin" >}}
254253
// Opens a new tab and switches to new tab
255254
driver.switchTo().newWindow(WindowType.TAB)

website_and_docs/content/documentation/webdriver/interactions/windows.ja.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,13 @@ Opens a new tab and switches to new tab
232232
Opens a new window and switches to new window
233233
{{< gh-codeblock path="/examples/ruby/spec/interactions/windows_spec.rb#L15" >}}
234234
{{% /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" >}}
241238

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 >}}
243242
{{< tab header="Kotlin" >}}
244243
// Opens a new tab and switches to new tab
245244
driver.switchTo().newWindow(WindowType.TAB)

website_and_docs/content/documentation/webdriver/interactions/windows.pt-br.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,13 @@ Opens a new tab and switches to new tab
238238
Opens a new window and switches to new window
239239
{{< gh-codeblock path="/examples/ruby/spec/interactions/windows_spec.rb#L15" >}}
240240
{{% /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" >}}
247244

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 >}}
249248
{{< tab header="Kotlin" >}}
250249
// Opens a new tab and switches to new tab
251250
driver.switchTo().newWindow(WindowType.TAB)

website_and_docs/content/documentation/webdriver/interactions/windows.zh-cn.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,12 @@ driver.SwitchTo().NewWindow(WindowType.Window)
225225
打开一个新窗口并切换到新窗口
226226
{{< gh-codeblock path="/examples/ruby/spec/interactions/windows_spec.rb#L15" >}}
227227
{{% /tab %}}
228-
{{< tab header="JavaScript" >}}
228+
{{< tab header="JavaScript" text=true >}}
229229
// 打开新标签页并切换到新标签页
230-
await driver.switchTo().newWindow('tab');
230+
{{< gh-codeblock path="examples/javascript/test/interactions/windows.spec.js#L70" >}}
231231

232232
// 打开一个新窗口并切换到新窗口
233-
await driver.switchTo().newWindow('window');
233+
{{< gh-codeblock path="examples/javascript/test/interactions/windows.spec.js#L75" >}}
234234

235235
{{< /tab >}}
236236
{{< tab header="Kotlin" >}}

0 commit comments

Comments
 (0)