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 31
31
} . to raise_error ( Selenium ::WebDriver ::Error ::WebDriverError , /Safari Service does not support setting log output/ )
32
32
end
33
33
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
34
40
end
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
102
102
{{< badge-code >}}
103
103
{{< /tab >}}
104
104
{{< tab header="Ruby" >}}
105
- {{< badge-code >}}
105
+ {{< gh-codeblock path="examples/ruby/spec/browsers/safari_spec.rb#L36-L37" >}}
106
106
{{< /tab >}}
107
107
{{< tab header="JavaScript" >}}
108
108
{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ To use this version in your code:
102
102
{{< badge-code >}}
103
103
{{< /tab >}}
104
104
{{< tab header="Ruby" >}}
105
- {{< badge-code >}}
105
+ {{< gh-codeblock path="examples/ruby/spec/browsers/safari_spec.rb#L36-L37" >}}
106
106
{{< /tab >}}
107
107
{{< tab header="JavaScript" >}}
108
108
{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ To use this version in your code:
102
102
{{< badge-code >}}
103
103
{{< /tab >}}
104
104
{{< tab header="Ruby" >}}
105
- {{< badge-code >}}
105
+ {{< gh-codeblock path="examples/ruby/spec/browsers/safari_spec.rb#L36-L37" >}}
106
106
{{< /tab >}}
107
107
{{< tab header="JavaScript" >}}
108
108
{{< badge-code >}}
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ To use this version in your code:
102
102
{{< badge-code >}}
103
103
{{< /tab >}}
104
104
{{< tab header="Ruby" >}}
105
- {{< badge-code >}}
105
+ {{< gh-codeblock path="examples/ruby/spec/browsers/safari_spec.rb#L36-L37" >}}
106
106
{{< /tab >}}
107
107
{{< tab header="JavaScript" >}}
108
108
{{< badge-code >}}
Original file line number Diff line number Diff line change 2
2
title : " 入门指南"
3
3
linkTitle : " 入门指南"
4
4
weight : 2
5
- needsTranslation : true
5
+ needsTranslation : false
6
6
description : >
7
7
如果你是Selenium的新手, 我们有一些资源帮助你快速入门.
8
8
aliases : [
@@ -16,7 +16,7 @@ aliases: [
16
16
17
17
18
18
Selenium 通过使用 _ WebDriver_ 支持市场上所有主流浏览器的自动化。
19
- Webdriver 是一个 API 和协议,它定义了一个语言中立的接口,用于控制 web 浏览器的行为。
19
+ WebDriver 是一个 API 和协议,它定义了一个语言中立的接口,用于控制 web 浏览器的行为。
20
20
每个浏览器都有一个特定的 WebDriver 实现,称为驱动程序。
21
21
驱动程序是负责委派给浏览器的组件,并处理与 Selenium 和浏览器之间的通信。
22
22
@@ -28,15 +28,15 @@ Selenium 框架通过一个面向用户的界面将所有这些部分连接在
28
28
该界面允许透明地使用不同的浏览器后端,
29
29
从而实现跨浏览器和跨平台自动化。
30
30
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
+ 目标浏览器的驱动程序 .
35
35
36
- *** Follow the links below to get up and going with Selenium WebDriver.***
36
+ *** 请点击以下链接,开始使用 Selenium WebDriver.***
37
37
38
- If you wish to start with a low-code/record and playback tool, please check
38
+ 如果您希望从低代码/录制和播放工具开始,请查看
39
39
[ Selenium IDE] ( https://selenium.dev/selenium-ide )
40
40
41
- Once you get things working, if you want to scale up your tests, check out the
41
+ 开始工作后,如果想扩展您的测试,请查看
42
42
[ Selenium Grid] ({{< ref "/documentation/grid" >}}).
Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ current window by using:
23
23
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/WindowsTest.java#L16-L20" >}}
24
24
{{< /tab >}}
25
25
{{< 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 >}}
27
29
{{< tab header="Ruby" >}}driver.window_handle{{< /tab >}}
28
30
{{< tab header="JavaScript" >}}await driver.getWindowHandle();{{< /tab >}}
29
31
{{< tab header="Kotlin" >}}driver.windowHandle{{< /tab >}}
Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ WebDriverは、ウィンドウとタブを区別しません。
21
21
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/WindowsTest.java#L16-L20" >}}
22
22
{{< /tab >}}
23
23
{{< 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 >}}
25
27
{{< tab header="Ruby" >}}driver.window_handle{{< /tab >}}
26
28
{{< tab header="JavaScript" >}}await driver.getWindowHandle();{{< /tab >}}
27
29
{{< 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
21
21
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/WindowsTest.java#L16-L20" >}}
22
22
{{< /tab >}}
23
23
{{< 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 >}}
25
27
{{< tab header="Ruby" >}}driver.window_handle{{< /tab >}}
26
28
{{< tab header="JavaScript" >}}await driver.getWindowHandle();{{< /tab >}}
27
29
{{< tab header="Kotlin" >}}driver.windowHandle{{< /tab >}}
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ WebDriver 没有区分窗口和标签页。如果你的站点打开了一个新
17
17
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/WindowsTest.java#L16-L20" >}}
18
18
{{< /tab >}}
19
19
{{< 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 >}}
21
23
{{< tab header="Ruby" >}}driver.window_handle{{< /tab >}}
22
24
{{< tab header="JavaScript" >}}await driver.getWindowHandle();{{< /tab >}}
23
25
{{< tab header="Kotlin" >}}driver.windowHandle{{< /tab >}}
You can’t perform that action at this time.
0 commit comments