{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1169","repository_url":"https://api.github.com/repos/Microsoft/BashOnWindows","labels_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1169/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1169/comments","events_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1169/events","html_url":"https://github.com/Microsoft/BashOnWindows/issues/1169","id":181576554,"number":1169,"title":"Using BashOnWindows with Selenium?","user":{"login":"wasabigeek","id":4256705,"avatar_url":"https://avatars.githubusercontent.com/u/4256705?v=3","gravatar_id":"","url":"https://api.github.com/users/wasabigeek","html_url":"https://github.com/wasabigeek","followers_url":"https://api.github.com/users/wasabigeek/followers","following_url":"https://api.github.com/users/wasabigeek/following{/other_user}","gists_url":"https://api.github.com/users/wasabigeek/gists{/gist_id}","starred_url":"https://api.github.com/users/wasabigeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wasabigeek/subscriptions","organizations_url":"https://api.github.com/users/wasabigeek/orgs","repos_url":"https://api.github.com/users/wasabigeek/repos","events_url":"https://api.github.com/users/wasabigeek/events{/privacy}","received_events_url":"https://api.github.com/users/wasabigeek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-07T03:13:23Z","updated_at":"2016-10-07T04:13:05Z","closed_at":null,"body":"Was trying to use [Selenium with Firefox](http://www.obeythetestinggoat.com/book/chapter_01.html), ran into `OSError: [Errno 8] Exec format error`. Is this unavoidable now due to the separation in the Windows and Linux environment i.e. even if I install the correct files on the Ubuntu environment, I wouldn't be able to open Firefox, is that correct?)\r\n\r\nMy python file is as follows:\r\n```\r\nfrom selenium import webdriver\r\nfrom selenium.webdriver.firefox.firefox_binary import FirefoxBinary\r\n\r\nbrowser = webdriver.Firefox(firefox_binary=FirefoxBinary(\r\n    firefox_path='/mnt/c/Program Files (x86)/Mozilla Firefox/firefox.exe'\r\n))\r\nbrowser.get('http://localhost:8000')\r\n\r\nassert 'Django' in browser.title\r\n```\r\n\r\n* Expected results: Selenium opens\r\n\r\n* Actual results (with terminal output if applicable): OSError: [Errno 8] Exec format error\r\n```\r\nTraceback (most recent call last):\r\n  File \"superlists/functional_tests.py\", line 7, in <module>\r\n    firefox_path='C:/Program Files (x86)/Mozilla Firefox/firefox.exe'\r\n  File \"/home/xyz/.virtualenvs/tddpython/lib/python3.4/site-packages/selenium/webdriver/firefox/webdriver.py\", line 80, in __init__\r\n    self.binary, timeout)\r\n  File \"/home/xyz/.virtualenvs/tddpython/lib/python3.4/site-packages/selenium/webdriver/firefox/extension_connection.py\", line 52, in __init__\r\n    self.binary.launch_browser(self.profile, timeout=timeout)\r\n  File \"/home/xyz/.virtualenvs/tddpython/lib/python3.4/site-packages/selenium/webdriver/firefox/firefox_binary.py\", line 67, in launch_browser\r\n    self._start_from_profile_path(self.profile.path)\r\n  File \"/home/xyz/.virtualenvs/tddpython/lib/python3.4/site-packages/selenium/webdriver/firefox/firefox_binary.py\", line 90, in _start_from_profile_path\r\n    env=self._firefox_env)\r\n  File \"/usr/lib/python3.4/subprocess.py\", line 859, in __init__\r\n    restore_signals, start_new_session)\r\n  File \"/usr/lib/python3.4/subprocess.py\", line 1457, in _execute_child\r\n    raise child_exception_type(errno_num, err_msg)\r\nFileNotFoundError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/Mozilla Firefox/firefox.exe'\r\n```\r\n\r\n* Windows build number: rs1_release 14393\r\n\r\nAfter I change the path and run it in [Git Bash](https://git-scm.com/download/win) (Windows), it works fine."},"comment":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/comments/252149090","html_url":"https://github.com/Microsoft/BashOnWindows/issues/1169#issuecomment-252149090","issue_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1169","id":252149090,"user":{"login":"fpqc","id":6083371,"avatar_url":"https://avatars.githubusercontent.com/u/6083371?v=3","gravatar_id":"","url":"https://api.github.com/users/fpqc","html_url":"https://github.com/fpqc","followers_url":"https://api.github.com/users/fpqc/followers","following_url":"https://api.github.com/users/fpqc/following{/other_user}","gists_url":"https://api.github.com/users/fpqc/gists{/gist_id}","starred_url":"https://api.github.com/users/fpqc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpqc/subscriptions","organizations_url":"https://api.github.com/users/fpqc/orgs","repos_url":"https://api.github.com/users/fpqc/repos","events_url":"https://api.github.com/users/fpqc/events{/privacy}","received_events_url":"https://api.github.com/users/fpqc/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T04:13:05Z","updated_at":"2016-10-07T04:13:05Z","body":"@wasabigeek Yeah.  You can even get audio working by piping pulseaudio to a Windows Pulse server.  @therealkenc made a ppa for Ubuntu Trusty with a special hacked build of pulseaudio (since the one on the official repo uses an unsupported futex or something)."}}
{"actor":{"display_login":"fpqc"}}