JavaScript is the language Selenium is written in. How can I write tests using JavaScript? When I attempted to include user extensions, I struggled with calling standard selenium commands from JavaScript. For instance, when I tried to execute doOpen, it did not properly wait for the browser to finish loading. Is there a proper way to invoke a Selenium command from JavaScript?