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

[🐛 Bug]: The sample for SeleniumJS has a typo in it that prevents it from executing #1096

Closed
jamesmortensen opened this issue Jul 28, 2022 · 3 comments
Labels
bug Something isn't working needs-triaging

Comments

@jamesmortensen
Copy link
Member

What happened?

On the page: https://www.selenium.dev/selenium/docs/api/javascript/index.html

Under Usage:

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

await driver.findElement(By.name('q'));.sendKeys('webdriver', Key.RETURN);

There is a . right after the semicolon.

What browsers and operating systems are you seeing the problem on?

Chrome latest on Mac M1, but I don't think it matters.

@jamesmortensen jamesmortensen added bug Something isn't working needs-triaging labels Jul 28, 2022
@harsha509
Copy link
Member

Hi @jamesmortensen,

The current documentation is generated with JS-dossier and generating docs with it now is hard as the package is not maintained anymore.

JS API docs needs to be updated, but It may take a while as am moving API docs to JSHint/typedoc!

Thanks,
Harsha

@harsha509
Copy link
Member

Will attach to existing issue!
SeleniumHQ/selenium#10185

@github-actions
Copy link
Contributor

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 Aug 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working needs-triaging
Projects
None yet
Development

No branches or pull requests

2 participants