Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect guidelines for selenium test automation #7184

Open
wants to merge 1 commit into
base: nw30
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions docs/For Users/Advanced/Test with ChromeDriver.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this removed?

Copy link
Author

@Sujatha-Pushparaj Sujatha-Pushparaj Jan 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The instructions provided currently is not working when I tried to automate tests using selenium in nw version of my application. While debugging I found it working when the application is built with SDK version of nw. So simply copying the 'chromedriver' from SDK version to application built with production version of nw doesn't seem to work.

* 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
Expand Down Expand Up @@ -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)
```
```