Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in API frontpage #7635

Closed
cefn opened this issue Oct 2, 2019 · 5 comments
Closed

Error in API frontpage #7635

cefn opened this issue Oct 2, 2019 · 5 comments
Labels
C-docs C-nodejs help wanted Issues looking for contributions

Comments

@cefn
Copy link

cefn commented Oct 2, 2019

There is an error in the main usage example offered at https://seleniumhq.github.io/selenium/docs/api/javascript/index.html

const {Builder, By, Key, until} = require('selenium-webdriver');

(async function example() {
  let driver = await new Builder().forBrowser('firefox').build();
  try {
    await driver.get('http://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();
  }
})();

There is a semicolon in the middle of the findElement line.

    await driver.findElement(By.name('q'));.sendKeys('webdriver', Key.RETURN);
@cefn cefn changed the title Errors in API frontpage Error in API frontpage Oct 2, 2019
@barancev
Copy link
Member

barancev commented Oct 2, 2019

It is already fixed in the code, documentation just to be regenerated and published to the site.

@camilstaps
Copy link

Related to #7558 then.

@barancev, do you have an overview of whether the JS bindings are being actively maintained?

@christian7877
Copy link

const {Builder, By, Key, until} = require('selenium-webdriver');

(async function example() {
let driver = await new Builder().forBrowser('firefox').build();
try {
await driver.get('http://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();
}
})();

@titusfortner
Copy link
Member

The error has been fixed, the bigger issue is just getting the docs updated. Tracking here now: #10185

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C-docs C-nodejs help wanted Issues looking for contributions
Projects
None yet
Development

No branches or pull requests

6 participants