full path to browser in saunter.ini on Windows => no browser session started
mmaypumphrey opened this issue · 1 comments
WHAT I DID:
- Specified a full path for *chrome in conf/saunter.ini on Windows:
browser: *chrome "C:/Program Files (x86)/Mozilla Firefox36"
(Specifying this second argument for the browser path works great on my MacBook.)
- Ran a test, which FAILED with a "Type Error: 'NoneType' object is not subscriptable." error message.
I've never been able to get this second argument to browser to work on Windows, possibly because of the necessity of double-quoting it to protect the embedded spaces.
Snapshot link below, which shows the error message from pysaunter, the server output, and the saunter.ini lines in question. Note that I tried with both forward and backward slashes. Both produced the same result.
You need to take the quotes off the path to the browser. I was able to replicate the problem using google chrome and this is how i fixed it
browser: *googlechrome C:\Program Files\Google\Chrome\Application\chrome.exe
If I wrapped the path in quotes like you would normally expect then it had the same NoneType error.