I am running a combination of Node.js + Mocha + Selenium Webdriverjs for the first time. I setup everything according to their documentation here https://code.google.com/p/selenium/wiki/WebDriverJs, but I find it very difficult to actually find a list of all the commands available via the web driver. Is there a list of commands that are available to use when writing tests using Selenium webdriverjs?
For example how would I achieve the below java code using Javascript
new Wait("Couldn't find close button!") {
boolean until() {
return selenium.isElementPresent("button_Close");
}
};
I know I can use driver.wait
but it doesn't recognize the until
command or the isElementPresent