问题
I don't seem to find any, the only one I always find is this one: https://code.google.com/p/selenium/wiki/WebDriverJs
But it is more a guide. Not a documentation of all functions. It lacks for example the documentation for Webdriver.Window
, or something like getWindowHandles()
回答1:
I always need to re-find this, so I might as well capture it here
http://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/
回答2:
The best way I found is to look at the source code itself at: https://code.google.com/p/selenium/source/browse/javascript/webdriver/webdriver.js
And then there is this automatically generated documentation: http://selenium.googlecode.com/git/docs/api/javascript/namespace_webdriver.html
I found it in these answers:
Selenium WebDriverJs commands
WebDriver (Selenium 2) API documentation
来源:https://stackoverflow.com/questions/30323166/where-is-the-documentation-of-selenium-webdriver-for-nodejs