Element-34 / py.saunter

sample framework for using selenium with python and page objects
Apache License 2.0
94 stars 35 forks source link

full path to browser in saunter.ini on Windows => no browser session started #20

Closed mmaypumphrey closed 12 years ago

mmaypumphrey commented 12 years ago

WHAT I DID:

  1. 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.)

  1. 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.

http://imgur.com/pAGtp

adamgoucher commented 12 years ago

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.