The Wayback Machine - https://web.archive.org/web/20200713004719/https://github.com/SeleniumHQ/selenium/issues/7635
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 · 3 comments
Open

Error in API frontpage #7635

cefn opened this issue Oct 2, 2019 · 3 comments
Labels

Comments

@cefn
Copy link

@cefn 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 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

@camilstaps camilstaps commented Oct 3, 2019

Related to #7558 then.

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

@christian7877
Copy link

@christian7877 christian7877 commented Mar 26, 2020

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();
}
})();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.