[js] Update example in selenium-webdriver/testing documentation
The firefox.Driver constructor was changed in 3.0 to not do any work.
Users should always use the Builder class to create new driver
instances.
Fixes
* The provided wrappers leverage the {@link webdriver.promise.ControlFlow}
* to simplify writing asynchronous tests:
*
- * var By = require('selenium-webdriver').By,
- * until = require('selenium-webdriver').until,
- * firefox = require('selenium-webdriver/firefox'),
- * test = require('selenium-webdriver/testing');
+ * var {Builder, By, until} = require('selenium-webdriver');
+ * var test = require('selenium-webdriver/testing');
*
* test.describe('Google Search', function() {
* var driver;
*
* test.before(function() {
- * driver = new firefox.Driver();
+ * driver = new Builder().forBrowser('firefox').build();
* });
*
* test.after(function() {
