-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[🐛 Bug]: Documentation test example - Severity 4 #13369
Comments
@thecircleoflifefree, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Those api documents are out of date and we can't fix them #10185 @thecircleoflifefree just remove the semicolon before the period,or doesn't belong there. Check out the examples in our website https://www.selenium.dev/documentation/webdriver/getting_started/?tab=javascript |
Sure, we should remove them. |
Lol, and I did extra work on the build automaton to not overwrite them. |
I mean, I have the JS docs in my TODO list, I can then work on it so you do not need to modify your scripts. |
Current scripts work either way, just have more lines of code. 😄 |
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. |
What happened?
On the following link:
example
This code will not run:
`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();
}
})();`
Line 7 will return:
SyntaxError: Unexpected token '.'
FIX
Remove ';' to use the sendKeys method accordingly.
How can we reproduce the issue?
Relevant log output
Operating System
NA
Selenium version
node
What are the browser(s) and version(s) where you see this issue?
NA
What are the browser driver(s) and version(s) where you see this issue?
NA
Are you using Selenium Grid?
NA
The text was updated successfully, but these errors were encountered: