From 85ffcea5ed1597b158014e872b9a2d7a104c4ec5 Mon Sep 17 00:00:00 2001 From: Sujatha-Pushparaj <33146142+Sujatha-Pushparaj@users.noreply.github.com> Date: Fri, 18 Oct 2019 09:42:13 +0530 Subject: [PATCH] Incorrect guidelines for selenium test automation I tried exactly what was given in the current version of documentation for test automation using selenium on the nw.js application. According to the documentation, copying only the chrome driver from the SDK build to the application directory should work. But it didn't work for me and was throwing an error saying chrome not reachable. Fortunately, it worked when I built the application with the SDK version of nw.js. So I made a correction in the documentation on the same. --- docs/For Users/Advanced/Test with ChromeDriver.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/For Users/Advanced/Test with ChromeDriver.md b/docs/For Users/Advanced/Test with ChromeDriver.md index 1cfabd27e0..464657afc5 100644 --- a/docs/For Users/Advanced/Test with ChromeDriver.md +++ b/docs/For Users/Advanced/Test with ChromeDriver.md @@ -15,8 +15,7 @@ The following workflow uses [selenium-python](http://selenium-python.readthedocs ### Installing -* Download ChromeDriver from NW.js website. It's in the SDK build. -* Extract the package and place `chromedriver` under the same dir that contains the NW.js binaries: `nw` for Linux, `nw.exe` for Windows, or `node-webkit.app` for Mac. +* Build your application with the SDK version of nw.js from the [official] (https://nwjs.io/) website * Install `selenium-python` in your project: ```bash pip install selenium @@ -65,4 +64,4 @@ chrome_options.add_argument("nwapp=/path/to/your/app") chrome_options.add_experimental_option("nwargs", ["arg1", "arg2"]) driver = webdriver.Chrome(executable_path='/path/to/nwjs/chromedriver', chrome_options=chrome_options) -``` \ No newline at end of file +```