]> khamidou — GitHub mirrors - electron.git/commitdiff
Clean up Selenium webdriver code example
authorThomas Tuts <thomas.tuts@gmail.com>
Tue, 9 Jun 2015 16:18:47 +0000 (18:18 +0200)
committerThomas Tuts <thomas.tuts@gmail.com>
Tue, 9 Jun 2015 16:18:47 +0000 (18:18 +0200)
docs/tutorial/using-selenium-and-webdriver.md

index cda69c0d61844302df0481562e1db514cf9d6888..13934c01b0866b6de026be4b73d055975d25f7a6 100644 (file)
@@ -49,14 +49,14 @@ and where to find Electron's binary:
 ```javascript
 var webdriver = require('selenium-webdriver');
 
-var driver = new webdriver.Builder().
-   // The "9515" is the port opened by chrome driver.
-   usingServer('http://localhost:9515').
-   withCapabilities({chromeOptions: {
-     // Here is the path to your Electron binary.
-     binary: '/Path-to-Your-App.app/Contents/MacOS/Atom'}}).
-   forBrowser('electron').
-   build();
+var driver = new webdriver.Builder()
+  // The "9515" is the port opened by chrome driver.
+  .usingServer('http://localhost:9515')
+  .withCapabilities({chromeOptions: {
+    // Here is the path to your Electron binary.
+    binary: '/Path-to-Your-App.app/Contents/MacOS/Atom'}})
+  .forBrowser('electron')
+  .build();
 
 driver.get('http://www.google.com');
 driver.findElement(webdriver.By.name('q')).sendKeys('webdriver');