Skip to content

Commit dd7219f

Browse files
authored
Merge branch 'trunk' into patch-1
2 parents 5a6af46 + cc1bdc8 commit dd7219f

File tree

10 files changed

+31
-17
lines changed

10 files changed

+31
-17
lines changed

examples/ruby/spec/browsers/safari_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,10 @@
3131
}.to raise_error(Selenium::WebDriver::Error::WebDriverError, /Safari Service does not support setting log output/)
3232
end
3333
end
34+
35+
it 'sets the technology preview' do
36+
Selenium::WebDriver::Safari.technology_preview!
37+
local_driver = Selenium::WebDriver.for :safari
38+
expect(local_driver.capabilities.browser_name).to eq 'Safari Technology Preview'
39+
end
3440
end

website_and_docs/content/documentation/webdriver/browsers/safari.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Apple provides a development version of their browser — [Safari Technology Pre
102102
{{< badge-code >}}
103103
{{< /tab >}}
104104
{{< tab header="Ruby" >}}
105-
{{< badge-code >}}
105+
{{< gh-codeblock path="examples/ruby/spec/browsers/safari_spec.rb#L36-L37" >}}
106106
{{< /tab >}}
107107
{{< tab header="JavaScript" >}}
108108
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/browsers/safari.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ To use this version in your code:
102102
{{< badge-code >}}
103103
{{< /tab >}}
104104
{{< tab header="Ruby" >}}
105-
{{< badge-code >}}
105+
{{< gh-codeblock path="examples/ruby/spec/browsers/safari_spec.rb#L36-L37" >}}
106106
{{< /tab >}}
107107
{{< tab header="JavaScript" >}}
108108
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/browsers/safari.pt-br.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ To use this version in your code:
102102
{{< badge-code >}}
103103
{{< /tab >}}
104104
{{< tab header="Ruby" >}}
105-
{{< badge-code >}}
105+
{{< gh-codeblock path="examples/ruby/spec/browsers/safari_spec.rb#L36-L37" >}}
106106
{{< /tab >}}
107107
{{< tab header="JavaScript" >}}
108108
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/browsers/safari.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ To use this version in your code:
102102
{{< badge-code >}}
103103
{{< /tab >}}
104104
{{< tab header="Ruby" >}}
105-
{{< badge-code >}}
105+
{{< gh-codeblock path="examples/ruby/spec/browsers/safari_spec.rb#L36-L37" >}}
106106
{{< /tab >}}
107107
{{< tab header="JavaScript" >}}
108108
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/getting_started/_index.zh-cn.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "入门指南"
33
linkTitle: "入门指南"
44
weight: 2
5-
needsTranslation: true
5+
needsTranslation: false
66
description: >
77
如果你是Selenium的新手, 我们有一些资源帮助你快速入门.
88
aliases: [
@@ -16,7 +16,7 @@ aliases: [
1616

1717

1818
Selenium 通过使用 _WebDriver_ 支持市场上所有主流浏览器的自动化。
19-
Webdriver 是一个 API 和协议,它定义了一个语言中立的接口,用于控制 web 浏览器的行为。
19+
WebDriver 是一个 API 和协议,它定义了一个语言中立的接口,用于控制 web 浏览器的行为。
2020
每个浏览器都有一个特定的 WebDriver 实现,称为驱动程序。
2121
驱动程序是负责委派给浏览器的组件,并处理与 Selenium 和浏览器之间的通信。
2222

@@ -28,15 +28,15 @@ Selenium 框架通过一个面向用户的界面将所有这些部分连接在
2828
该界面允许透明地使用不同的浏览器后端,
2929
从而实现跨浏览器和跨平台自动化。
3030

31-
Selenium setup is quite different from the setup of other commercial tools.
32-
Before you can start writing Selenium code, you have to
33-
install the language bindings libraries for your language of choice, the browser you
34-
want to use, and the driver for that browser.
31+
Selenium的设置与其他商业工具有很大不同.
32+
在开始编写 Selenium 代码之前,
33+
您必须安装所选语言的相关类库,
34+
目标浏览器的驱动程序.
3535

36-
***Follow the links below to get up and going with Selenium WebDriver.***
36+
***请点击以下链接,开始使用 Selenium WebDriver.***
3737

38-
If you wish to start with a low-code/record and playback tool, please check
38+
如果您希望从低代码/录制和播放工具开始,请查看
3939
[Selenium IDE](https://selenium.dev/selenium-ide)
4040

41-
Once you get things working, if you want to scale up your tests, check out the
41+
开始工作后,如果想扩展您的测试,请查看
4242
[Selenium Grid]({{< ref "/documentation/grid" >}}).

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ current window by using:
2323
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/WindowsTest.java#L16-L20" >}}
2424
{{< /tab >}}
2525
{{< tab header="Python" >}}driver.current_window_handle{{< /tab >}}
26-
{{< tab header="CSharp" >}}driver.CurrentWindowHandle;{{< /tab >}}
26+
{{< tab header="CSharp" >}}
27+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/WindowsTest.cs#L14-L18" >}}
28+
{{< /tab >}}
2729
{{< tab header="Ruby" >}}driver.window_handle{{< /tab >}}
2830
{{< tab header="JavaScript" >}}await driver.getWindowHandle();{{< /tab >}}
2931
{{< tab header="Kotlin" >}}driver.windowHandle{{< /tab >}}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ WebDriverは、ウィンドウとタブを区別しません。
2121
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/WindowsTest.java#L16-L20" >}}
2222
{{< /tab >}}
2323
{{< tab header="Python" >}}driver.current_window_handle{{< /tab >}}
24-
{{< tab header="CSharp" >}}driver.CurrentWindowHandle;{{< /tab >}}
24+
{{< tab header="CSharp" >}}
25+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/WindowsTest.cs#L14-L18" >}}
26+
{{< /tab >}}
2527
{{< tab header="Ruby" >}}driver.window_handle{{< /tab >}}
2628
{{< tab header="JavaScript" >}}await driver.getWindowHandle();{{< /tab >}}
2729
{{< tab header="Kotlin" >}}driver.windowHandle{{< /tab >}}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ persistente em uma única sessão. Você pode pegar o identificador atual usando
2121
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/WindowsTest.java#L16-L20" >}}
2222
{{< /tab >}}
2323
{{< tab header="Python" >}}driver.current_window_handle{{< /tab >}}
24-
{{< tab header="CSharp" >}}driver.CurrentWindowHandle;{{< /tab >}}
24+
{{< tab header="CSharp" >}}
25+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/WindowsTest.cs#L14-L18" >}}
26+
{{< /tab >}}
2527
{{< tab header="Ruby" >}}driver.window_handle{{< /tab >}}
2628
{{< tab header="JavaScript" >}}await driver.getWindowHandle();{{< /tab >}}
2729
{{< tab header="Kotlin" >}}driver.windowHandle{{< /tab >}}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ WebDriver 没有区分窗口和标签页。如果你的站点打开了一个新
1717
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/WindowsTest.java#L16-L20" >}}
1818
{{< /tab >}}
1919
{{< tab header="Python" >}}driver.current_window_handle{{< /tab >}}
20-
{{< tab header="CSharp" >}}driver.CurrentWindowHandle;{{< /tab >}}
20+
{{< tab header="CSharp" >}}
21+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/WindowsTest.cs#L14-L18" >}}
22+
{{< /tab >}}
2123
{{< tab header="Ruby" >}}driver.window_handle{{< /tab >}}
2224
{{< tab header="JavaScript" >}}await driver.getWindowHandle();{{< /tab >}}
2325
{{< tab header="Kotlin" >}}driver.windowHandle{{< /tab >}}

0 commit comments

Comments
 (0)