I'm writing some tests for my site using webdriverjs with mocha/chai, and I find when I do this:
it('select application', function(done) {
client
.click('.disciplinetext > table:nth-child(7) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(3) > button:nth-child(1)')
// more stuff
.click
.waitFor('.disciplinetext > table:nth-child(7) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(3) > button:nth-child(1)',1000)
waitFor
.setValue
.click
.getText
The driver.manage().timeouts().implicitlyWait(ms)
function does exist in the WebdriverJS Reference API Docs. This API is for the official Javascript API that Selenium supports and @sircapsalot's excerpt comes from. However, it is much cleaner than looking at the Google Code and much easier to navigate.