Skip to content

Commit

Permalink
[js] Running format script
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed May 15, 2024
1 parent 9f650fd commit 3e457dd
Showing 1 changed file with 19 additions and 31 deletions.
50 changes: 19 additions & 31 deletions javascript/node/selenium-webdriver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ following path – /usr/bin/safaridriver. To enable automation on safari,
you need to run command `safaridriver --enable`.

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

;(async function example () {
let driver = await new Builder().forBrowser(Browser.FIREFOX).build()
try {
await driver.get('https://www.google.com/ncr')
await driver.findElement(By.name('q')).sendKeys('webdriver', Key.RETURN)
await driver.wait(until.titleIs('webdriver - Google Search'), 1000)
} finally {
await driver.quit()
}
;(async function example() {
let driver = await new Builder().forBrowser(Browser.FIREFOX).build()
try {
await driver.get('https://www.google.com/ncr')
await driver.findElement(By.name('q')).sendKeys('webdriver', Key.RETURN)
await driver.wait(until.titleIs('webdriver - Google Search'), 1000)
} finally {
await driver.quit()
}
})()
```

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

let driver = new webdriver.Builder()
.forBrowser(webdriver.Browser.FIREFOX)
.setChromeOptions(/* ... */)
.setFirefoxOptions(/* ... */)
.build()
.forBrowser(webdriver.Browser.FIREFOX)
.setChromeOptions(/* ... */)
.setFirefoxOptions(/* ... */)
.build()
```

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

```javascript
let driver = new webdriver.Builder()
.forBrowser(webdriver.Browser.FIREFOX)
.usingServer('http://localhost:4444/wd/hub')
.build()
.forBrowser(webdriver.Browser.FIREFOX)
.usingServer('http://localhost:4444/wd/hub')
.build()
```

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

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

| Release | Status | END-OF-LIFE |
|:-------:|:---------------:|:-----------:|
| :-----: | :-------------: | :---------: |
| v14.x | Maintenance LTS | 2023-04-30 |
| v16.x | Active LTS | 2023-09-11 |
| v18.x | Current | 2025-04-30 |
Expand Down Expand Up @@ -216,27 +216,15 @@ specific language governing permissions and limitations
under the License.

[LTS]: https://github.com/nodejs/LTS

[PATH]: http://en.wikipedia.org/wiki/PATH_%28variable%29

[api]: http://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/

[chrome]: https://googlechromelabs.github.io/chrome-for-testing/#stable

[gh]: https://github.com/SeleniumHQ/selenium/

[issues]: https://github.com/SeleniumHQ/selenium/issues

[edge]: http://go.microsoft.com/fwlink/?LinkId=619687

[geckodriver]: https://github.com/mozilla/geckodriver/releases/

[reduction]: http://www.webkit.org/quality/reduction.html

[release]: https://www.selenium.dev/downloads/

[users]: https://groups.google.com/forum/#!forum/selenium-users

[safaridriver]: https://developer.apple.com/library/prerelease/content/releasenotes/General/WhatsNewInSafari/Articles/Safari_10_0.html#//apple_ref/doc/uid/TP40014305-CH11-DontLinkElementID_28

[operadriver]: https://github.com/operasoftware/operachromiumdriver/releases

0 comments on commit 3e457dd

Please sign in to comment.