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

Open
cefn opened this issue Oct 2, 2019 · 2 comments

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

This comment has been minimized.

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

This comment has been minimized.

Copy link

camilstaps commented Oct 3, 2019

Related to #7558 then.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.