Skip to content

Commit 9766f65

Browse files
authored
Merge branch 'trunk' into trunk
2 parents bb79539 + e9323eb commit 9766f65

16 files changed

+24
-96
lines changed

‎website_and_docs/content/documentation/test_practices/encouraged/fresh_browser_per_test.en.md‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ Start each test from a clean known state.
1212
Ideally, spin up a new virtual machine for each test.
1313
If spinning up a new virtual machine is not practical,
1414
at least start a new WebDriver for each test.
15-
For Firefox, start a WebDriver with your known profile.
16-
15+
Most browser drivers like GeckoDriver and ChromeDriver will start with a clean
16+
known state with a new user profile, by default.
1717
```java
18-
FirefoxProfile profile = new FirefoxProfile(new File("pathToFirefoxProfile"));
19-
WebDriver driver = new FirefoxDriver(profile);
18+
WebDriver driver = new FirefoxDriver();
2019
```

‎website_and_docs/content/documentation/test_practices/encouraged/fresh_browser_per_test.ja.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ aliases: [
1313
理想的には、テストごとに新しい仮想マシンを起動します。
1414
新しい仮想マシンの起動が実用的でない場合は、少なくともテストごとに新しいWebDriverを起動してください。
1515
Firefoxの場合、既知のプロファイルでWebDriverを起動します。
16-
16+
Most browser drivers like GeckoDriver and ChromeDriver will start with a clean
17+
known state with a new user profile, by default.
1718
```java
18-
FirefoxProfile profile = new FirefoxProfile(new File("pathToFirefoxProfile"));
19-
WebDriver driver = new FirefoxDriver(profile);
19+
WebDriver driver = new FirefoxDriver();
2020
```

‎website_and_docs/content/documentation/test_practices/encouraged/fresh_browser_per_test.pt-br.md‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ Comece cada teste a partir de um estado limpo conhecido.
1212
Idealmente, ligue uma nova máquina virtual para cada teste.
1313
Se ligar uma nova máquina virtual não for prático,
1414
pelo menos inicie um novo WebDriver para cada teste.
15-
Para Firefox, inicie um WebDriver com seu perfil conhecido.
16-
15+
Most browser drivers like GeckoDriver and ChromeDriver will start with a clean
16+
known state with a new user profile, by default.
1717
```java
18-
FirefoxProfile profile = new FirefoxProfile(new File("pathToFirefoxProfile"));
19-
WebDriver driver = new FirefoxDriver(profile);
18+
WebDriver driver = new FirefoxDriver();
2019
```

‎website_and_docs/content/documentation/test_practices/encouraged/fresh_browser_per_test.zh-cn.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ aliases: [
1313
理想情况下, 为每次测试打开一个新的虚拟机.
1414
如果打开新虚拟机不切实际, 则至少应为每次测试启动一个新的WebDriver.
1515
对于Firefox, 请使用您已知的配置文件去启动WebDriver.
16-
16+
Most browser drivers like GeckoDriver and ChromeDriver will start with a clean
17+
known state with a new user profile, by default.
1718
```java
18-
FirefoxProfile profile = new FirefoxProfile(new File("pathToFirefoxProfile"));
19-
WebDriver driver = new FirefoxDriver(profile);
19+
WebDriver driver = new FirefoxDriver();
2020
```

‎website_and_docs/content/documentation/webdriver/capabilities/shared.en.md‎

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -399,25 +399,7 @@ user prompt encounters at the remote-end. This is defined by
399399

400400
## setWindowRect
401401

402-
This command alters the size and position of the current
403-
browsing context window. This command acts as setter
404-
to `getWindowRect` command which accepts **width**, **height**,
405-
**x**, **y** as _optional_ arguments.
406-
407-
During automation, the current browsing context will be associated
408-
with window states, which describe the visibility
409-
of the browser window. The window states are
410-
411-
* maximized
412-
* minimized
413-
* normal
414-
* fullscreen
415-
416-
Setting _Width_ or _Height_ does not guaranteed that the resulting
417-
window size will exactly match that which was requested. This is because
418-
some drivers may not be able to resize in single-pixel increments.
419-
Due to this, fetching the window state/details by `getWindowRect`
420-
may not match the values set in the browser.
402+
Indicates whether the remote end supports all of the [resizing and repositioning](https://w3c.github.io/webdriver/#resizing-and-positioning-windows) [commands](https://w3c.github.io/webdriver/#dfn-commands).
421403

422404
## strictFileInteractability
423405

‎website_and_docs/content/documentation/webdriver/capabilities/shared.ja.md‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -101,24 +101,7 @@ WebDriverの `セッション` には特定の `セッションタイムアウ
101101

102102
## setWindowRect
103103

104-
このコマンドは、現在のブラウジングコンテキストウィンドウのサイズと位置を変更します。
105-
このコマンドは、******高さ****x****y**_任意_ の引数として受け取る
106-
`getWindowRect` コマンドのセッターとして機能します。
107-
108-
自動化中、現在のブラウジングコンテキストは、
109-
ブラウザーウィンドウの可視状態を表すウィンドウ状態に関連付けられます。
110-
ウィンドウ状態は、以下です。
111-
112-
* maximized
113-
* minimized
114-
* normal
115-
* fullscreen
116-
117-
__ または _高さ_ を設定しても、結果のウィンドウサイズが要求されたものと
118-
正確に一致することを保証しません。
119-
これは、一部のドライバはシングルピクセル単位でサイズ変更できない場合があるからです。
120-
このため、 `getWindowRect` でウィンドウの状態/詳細を取得しても、
121-
ブラウザーに設定された値と等しく一致しない場合があります。
104+
Indicates whether the remote end supports all of the [resizing and repositioning](https://w3c.github.io/webdriver/#resizing-and-positioning-windows) [commands](https://w3c.github.io/webdriver/#dfn-commands).
122105

123106
## strictFileInteractability
124107

‎website_and_docs/content/documentation/webdriver/capabilities/shared.pt-br.md‎

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -130,25 +130,7 @@ recurso `unhandledPromptBehavior` e tem os seguintes estados:
130130

131131
## setWindowRect
132132

133-
Este comando altera o tamanho e a posição da atual
134-
janela de contexto de navegação. Este comando atua como setter
135-
para o comando `getWindowRect` que aceita **largura**, **altura**,
136-
**x**, **y** como argumentos _opcionais_.
137-
138-
Durante a automação, o contexto de navegação atual será associado
139-
com estados de janela, que descrevem a visibilidade
140-
da janela do navegador. Os estados da janela são
141-
142-
* maximized
143-
* minimized
144-
* normal
145-
* fullscreen
146-
147-
Definir _Width_ ou _Height_ não garante que o resultado
148-
o tamanho da janela corresponderá exatamente ao que foi inserido. Isto é porque
149-
alguns drivers podem não ser redimensionados em incrementos de pixel único.
150-
Devido a isso, buscar o estado / detalhes da janela por `getWindowRect`
151-
pode não corresponder igualmente aos valores definidos para o navegador.
133+
Indicates whether the remote end supports all of the [resizing and repositioning](https://w3c.github.io/webdriver/#resizing-and-positioning-windows) [commands](https://w3c.github.io/webdriver/#dfn-commands).
152134

153135
## strictFileInteractability
154136

‎website_and_docs/content/documentation/webdriver/capabilities/shared.zh-cn.md‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -114,24 +114,7 @@ WebDriver创建新会话时,
114114

115115
## setWindowRect
116116

117-
此命令更改当前浏览上下文中窗口的大小和位置.
118-
此命令作为 `getWindowRect` 对应的设置方法,
119-
该命令接受 **width**, **height**,
120-
**x**, **y** 作为 _可选_ 参数.
121-
122-
在自动化期间,
123-
当前浏览上下文将与描述浏览器窗口可见性状态的窗口状态相关联.
124-
窗口状态为
125-
126-
* maximized
127-
* minimized
128-
* normal
129-
* fullscreen
130-
131-
设置 _Width__Height_ 不能保证结果窗口的大小一定完全匹配所请求的窗口大小.
132-
这是因为某些驱动程序可能无法以单像素为单位调整大小.
133-
因此, 通过 `getWindowRect` 获取窗口状态 (或详细信息)
134-
可能与浏览器设置的值不匹配.
117+
Indicates whether the remote end supports all of the [resizing and repositioning](https://w3c.github.io/webdriver/#resizing-and-positioning-windows) [commands](https://w3c.github.io/webdriver/#dfn-commands).
135118

136119
## strictFileInteractability
137120

‎website_and_docs/content/documentation/webdriver/elements/information.en.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ browsing context else returns false.
1717

1818
This functionality is [mentioned in](https://w3c.github.io/webdriver/#element-displayedness), but not defined by
1919
the w3c specification due to the
20-
[impossibility of covering all potential conditions](https://www.youtube.com/watch?v=hTa1KI6fQpg).
20+
[impossibility of covering all potential conditions](https://www.youtube.com/watch?v=LAD_XPGP_kk).
2121
As such, Selenium cannot expect drivers to implement
2222
this functionality directly, and now relies on
2323
executing a large JavaScript function directly.

‎website_and_docs/content/documentation/webdriver/elements/information.ja.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ browsing context else returns false.
1717

1818
This functionality is [mentioned in](https://w3c.github.io/webdriver/#element-displayedness), but not defined by
1919
the w3c specification due to the
20-
[impossibility of covering all potential conditions](https://www.youtube.com/watch?v=hTa1KI6fQpg).
20+
[impossibility of covering all potential conditions](https://www.youtube.com/watch?v=LAD_XPGP_kk).
2121
As such, Selenium cannot expect drivers to implement
2222
this functionality directly, and now relies on
2323
executing a large JavaScript function directly.

0 commit comments

Comments
 (0)