python - WebDriver Firefox profile not working after IEDriverServer setup -
i've been using webdriver.firefox() test cases, wanted test on ie. downloaded iedriverserver, added path , ran ie test case successfully. however, when tried switching firefox , running same test case, firefox browser opened up, nothing happened, , received error:
c:\python33\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py:85: resourcewarning: unclosed <socket.socket object, fd=280, family=2, type=1, proto=0> while not utils.is_connectable(self.profile.port): c:\python33\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py:85: resourcewarning: unclosed <socket.socket object, fd=532, family=2, type=1, proto=0> while not utils.is_connectable(self.profile.port): e ====================================================================== error: test_ytest (__main__.ytest) ---------------------------------------------------------------------- traceback (most recent call last): file "c:\users\k\workspace\pythontesting\src\recipetest.py", line 11, in setup self.driver = webdriver.firefox() file "c:\python33\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 61, in __init__ self.binary, timeout), file "c:\python33\lib\site-packages\selenium\webdriver\firefox\extension_connection.py", line 47, in __init__ self.binary.launch_browser(self.profile) file "c:\python33\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 51, in launch_browser self._wait_until_connectable() file "c:\python33\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 95, in _wait_until_connectable self.profile.path, self._get_firefox_output())) selenium.common.exceptions.webdriverexception: message: "can't load profile. profile dir: c:\\users\\k\\appdata\\local\\temp\\tmp0vf9hl firefox output: b'*** log addons.xpi: startup\\r\\n*** log addons.xpi: skipping unavailable install location app-system-local\\r\\n*** log addons.xpi: skipping unavailable install location app-system-share\\r\\n*** warn addons.xpi: ignoring missing add-on in c:\\\\program files (x86)\\\\wajam\\\\firefox\\\\{5a95a9e0-59dd-4314-bd84-4d18ca83a0e2}.xpi\\r\\n*** log addons.xpi: checkforchanges\\r\\n*** log addons.xpi: no changes found\\r\\n'" ---------------------------------------------------------------------- ran 1 test in 35.208s failed (errors=1)
i've removed path iedriversetup , went far remove it. restarted eclipse (i'm using run python/webdriver tests) , restarted ie , firefox no avail.
any appreciated.
edit
i using python 3.3 develop test cases, if makes difference.
is there __pycache__ directory among files? removed it. no error once removed.
ps. python 3.3.2
Comments
Post a Comment