We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://www.selenium.dev/selenium/docs/api/javascript/index.html
Under the Usage section of the page:
sample code
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(); } })();
The sample code should not have the extra ; in the middle of the driver.findElement function:
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(); } })();
The text was updated successfully, but these errors were encountered:
This is a duplicate of #7635, the docs will be regenerated when we release beta-1.
Sorry, something went wrong.
No branches or pull requests
🐛 Bug Report
The sample code for selenium-webdriver has an extra ; in the middle of the code making it not able to execute.
To Reproduce
Under the Usage section of the page:
sample code
Expected behavior
The sample code should not have the extra ; in the middle of the driver.findElement function:
The text was updated successfully, but these errors were encountered: