SeleniumHQ / www.seleniumhq.org

Old Selenium website and docs (deprecated)

Repository from Github https://github.comSeleniumHQ/www.seleniumhq.orgRepository from Github https://github.comSeleniumHQ/www.seleniumhq.org

Javascript example not working

macroking opened this issue · comments

http://www.seleniumhq.org/docs/03_webdriver.jsp
Example in section - Introducing the Selenium-WebDriver API by Example

Issues:

  1. ReferenceError: webdriver is not defined. (fix: By adding a require statement)
  2. TypeError: Target browser must be a string, but is ; did you forget to call forBrowser() ( fix : make a forBrowser('firefox') call)
  3. Error: The geckodriver.exe executable could not be found on the current PATH. (Download and set the geckodriver path in the example)

Do you want raise a PR ?

I'm working on it.

Closing as the related PR was never merged and we have a new site and new docs as well.
Apologies again @macroking!