Skip to content

Commit 3e457dd

Browse files
committed
[js] Running format script
1 parent 9f650fd commit 3e457dd

File tree

1 file changed

+19
-31
lines changed

1 file changed

+19
-31
lines changed

javascript/node/selenium-webdriver/README.md

Lines changed: 19 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ following path – /usr/bin/safaridriver. To enable automation on safari,
1818
you need to run command `safaridriver --enable`.
1919

2020
| Browser | Component |
21-
|:------------------|:---------------------------------|
21+
| :---------------- | :------------------------------- |
2222
| Chrome | [chromedriver(.exe)][chrome] |
2323
| Internet Explorer | [IEDriverServer.exe][release] |
2424
| Edge | [MicrosoftWebDriver.msi][edge] |
@@ -34,15 +34,15 @@ also find the tests for selenium-webdriver informative.
3434
```javascript
3535
const { Builder, Browser, By, Key, until } = require('selenium-webdriver')
3636

37-
;(async function example () {
38-
let driver = await new Builder().forBrowser(Browser.FIREFOX).build()
39-
try {
40-
await driver.get('https://www.google.com/ncr')
41-
await driver.findElement(By.name('q')).sendKeys('webdriver', Key.RETURN)
42-
await driver.wait(until.titleIs('webdriver - Google Search'), 1000)
43-
} finally {
44-
await driver.quit()
45-
}
37+
;(async function example() {
38+
let driver = await new Builder().forBrowser(Browser.FIREFOX).build()
39+
try {
40+
await driver.get('https://www.google.com/ncr')
41+
await driver.findElement(By.name('q')).sendKeys('webdriver', Key.RETURN)
42+
await driver.wait(until.titleIs('webdriver - Google Search'), 1000)
43+
} finally {
44+
await driver.quit()
45+
}
4646
})()
4747
```
4848

@@ -59,10 +59,10 @@ const chrome = require('selenium-webdriver/chrome')
5959
const firefox = require('selenium-webdriver/firefox')
6060

6161
let driver = new webdriver.Builder()
62-
.forBrowser(webdriver.Browser.FIREFOX)
63-
.setChromeOptions(/* ... */)
64-
.setFirefoxOptions(/* ... */)
65-
.build()
62+
.forBrowser(webdriver.Browser.FIREFOX)
63+
.setChromeOptions(/* ... */)
64+
.setFirefoxOptions(/* ... */)
65+
.build()
6666
```
6767

6868
Why would you want to configure options irrelevant to the target browser? The
@@ -98,9 +98,9 @@ API:
9898

9999
```javascript
100100
let driver = new webdriver.Builder()
101-
.forBrowser(webdriver.Browser.FIREFOX)
102-
.usingServer('http://localhost:4444/wd/hub')
103-
.build()
101+
.forBrowser(webdriver.Browser.FIREFOX)
102+
.usingServer('http://localhost:4444/wd/hub')
103+
.build()
104104
```
105105

106106
Or change the Builder's configuration at runtime with the `SELENIUM_REMOTE_URL`
@@ -140,7 +140,7 @@ v18.8.0,
140140
respectively. Then a Selenium release would have the following support levels:
141141

142142
| Version | Support |
143-
|:---------:|:-------------:|
143+
| :-------: | :-----------: |
144144
| <= 14.19 | _unsupported_ |
145145
| 14.20.0 | supported |
146146
| 18.0-7 | best effort |
@@ -167,7 +167,7 @@ If Node releases a new [LTS] each October and a new major version every 6
167167
months, the support window for selenium-webdriver will be roughly:
168168

169169
| Release | Status | END-OF-LIFE |
170-
|:-------:|:---------------:|:-----------:|
170+
| :-----: | :-------------: | :---------: |
171171
| v14.x | Maintenance LTS | 2023-04-30 |
172172
| v16.x | Active LTS | 2023-09-11 |
173173
| v18.x | Current | 2025-04-30 |
@@ -216,27 +216,15 @@ specific language governing permissions and limitations
216216
under the License.
217217

218218
[LTS]: https://github.com/nodejs/LTS
219-
220219
[PATH]: http://en.wikipedia.org/wiki/PATH_%28variable%29
221-
222220
[api]: http://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/
223-
224221
[chrome]: https://googlechromelabs.github.io/chrome-for-testing/#stable
225-
226222
[gh]: https://github.com/SeleniumHQ/selenium/
227-
228223
[issues]: https://github.com/SeleniumHQ/selenium/issues
229-
230224
[edge]: http://go.microsoft.com/fwlink/?LinkId=619687
231-
232225
[geckodriver]: https://github.com/mozilla/geckodriver/releases/
233-
234226
[reduction]: http://www.webkit.org/quality/reduction.html
235-
236227
[release]: https://www.selenium.dev/downloads/
237-
238228
[users]: https://groups.google.com/forum/#!forum/selenium-users
239-
240229
[safaridriver]: https://developer.apple.com/library/prerelease/content/releasenotes/General/WhatsNewInSafari/Articles/Safari_10_0.html#//apple_ref/doc/uid/TP40014305-CH11-DontLinkElementID_28
241-
242230
[operadriver]: https://github.com/operasoftware/operachromiumdriver/releases

0 commit comments

Comments
 (0)