python - Selenium crashes after running for a while -
i wrote selenium script runs fine couple of minutes. errors out , complains accessing socket problem.
file "f:\googledrive\documents\online class\jh\foundations of software engineering\groupproject\wheelofjeopardyhtml5\tests\playgameutil.py", line 77, in do_spin_wheel lambda driver: driver.find_element(by.id, "incorrectbutton").is_enabled() file "c:\python27\lib\site-packages\selenium\webdriver\support\wait.py", line 71, in until value = method(self._driver) file "f:\googledrive\documents\online class\jh\foundations of software engineering\groupproject\wheelofjeopardyhtml5\tests\playgameutil.py", line 81, in <lambda> or driver.find_element(by.id, "usetokenmodal").is_displayed()) file "c:\python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 832, in find_element 'value': value})['value'] file "c:\python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 295, in execute response = self.command_executor.execute(driver_command, params) file "c:\python27\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 464, in execute return self._request(command_info[0], url, body=data) file "c:\python27\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 487, in _request self._conn.request(method, parsed_url.path, body, headers) file "c:\python27\lib\httplib.py", line 1057, in request self._send_request(method, url, body, headers) file "c:\python27\lib\httplib.py", line 1097, in _send_request self.endheaders(body) file "c:\python27\lib\httplib.py", line 1053, in endheaders self._send_output(message_body) file "c:\python27\lib\httplib.py", line 897, in _send_output self.send(msg) file "c:\python27\lib\httplib.py", line 859, in send self.connect() file "c:\python27\lib\httplib.py", line 836, in connect self.timeout, self.source_address) file "c:\python27\lib\socket.py", line 575, in create_connection raise err error: [errno 10013] attempt made access socket in way forbidden access permissions i've tried chrome , firefox webdrivers issue persist in both webdrivers. errors out in random locations in script every time run it. in code outputted above happen when trying find element though element exist. running script in administrator mode should issue if able start socket @ start of script. suppose refresh socket? webdriver timeout if used long?
Comments
Post a Comment