File tree Expand file tree Collapse file tree 10 files changed +31
-17
lines changed
examples/ruby/spec/browsers
website_and_docs/content/documentation/webdriver Expand file tree Collapse file tree 10 files changed +31
-17
lines changed Original file line number Diff line number Diff line change 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
3440end
Original file line number Diff line number Diff 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 >}}
Original file line number Diff line number Diff 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 >}}
Original file line number Diff line number Diff 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 >}}
Original file line number Diff line number Diff 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 >}}
Original file line number Diff line number Diff line change 22title : " 入门指南"
33linkTitle : " 入门指南"
44weight : 2
5- needsTranslation : true
5+ needsTranslation : false
66description : >
77 如果你是Selenium的新手, 我们有一些资源帮助你快速入门.
88aliases : [
@@ -16,7 +16,7 @@ aliases: [
1616
1717
1818Selenium 通过使用 _ 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" >}}).
Original file line number Diff line number Diff 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 >}}
Original file line number Diff line number Diff 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 >}}
Original file line number Diff line number Diff 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 >}}
Original file line number Diff line number Diff 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 >}}
You can’t perform that action at this time.
0 commit comments