NEW182332
WebDriver: test imported/selenium/py/test/selenium/webdriver/common/page_load_timeout_tests.py::testClickShouldTimeout fails
https://bugs.webkit.org/show_bug.cgi?id=182332
Summary WebDriver: test imported/selenium/py/test/selenium/webdriver/common/page_load...
Carlos Garcia Campos
Reported 2018-01-31 05:10:36 PST
It seems to be causing a crash in the server: ___________________________________________________________________ ERROR at teardown of testClickShouldTimeout[WebKitGTK] ___________________________________________________________________ driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="9a9ffaa7-777c-4cf4-8a02-42321898effe")> @pytest.fixture(autouse=True) def reset_timeouts(driver): yield > driver.set_page_load_timeout(300) driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="9a9ffaa7-777c-4cf4-8a02-42321898effe")> WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/page_load_timeout_tests.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ WebDriverTests/imported/selenium/py/selenium/webdriver/remote/webdriver.py:926: in set_page_load_timeout 'pageLoad': int(float(time_to_wait) * 1000)}) WebDriverTests/imported/selenium/py/selenium/webdriver/remote/webdriver.py:310: in execute response = self.command_executor.execute(driver_command, params) WebDriverTests/imported/selenium/py/selenium/webdriver/remote/remote_connection.py:466: in execute return self._request(command_info[0], url, body=data) WebDriverTests/imported/selenium/py/selenium/webdriver/remote/remote_connection.py:528: in _request resp = opener.open(request, timeout=self._timeout) /usr/lib/python2.7/urllib2.py:429: in open response = self._open(req, data) /usr/lib/python2.7/urllib2.py:447: in _open '_open', req) /usr/lib/python2.7/urllib2.py:407: in _call_chain result = func(*args) /usr/lib/python2.7/urllib2.py:1228: in http_open return self.do_open(httplib.HTTPConnection, req) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <urllib2.HTTPHandler instance at 0x7fc628a7b560>, http_class = <class httplib.HTTPConnection at 0x7fc630ddb460> req = <selenium.webdriver.remote.remote_connection.Request instance at 0x7fc628a7b7a0>, http_conn_args = {}, host = '127.0.0.1:51085', h = <httplib.HTTPConnection instance at 0x7fc628a7b050> err = error(111, 'Connection refused') def do_open(self, http_class, req, **http_conn_args): """Return an addinfourl object for the request, using http_class. http_class must implement the HTTPConnection API from httplib. The addinfourl return value is a file-like object. It also has methods and attributes including: - info(): return a mimetools.Message object for the headers - geturl(): return the original request URL - code: HTTP status code """ host = req.get_host() if not host: raise URLError('no host given') # will parse host:port h = http_class(host, timeout=req.timeout, **http_conn_args) h.set_debuglevel(self._debuglevel) headers = dict(req.unredirected_hdrs) headers.update(dict((k, v) for k, v in req.headers.items() if k not in headers)) # We want to make an HTTP/1.1 request, but the addinfourl # class isn't prepared to deal with a persistent connection. # It will try to read all remaining data from the socket, # which will block while the server waits for the next request. # So make sure the connection gets closed after the (only) # request. headers["Connection"] = "close" headers = dict( (name.title(), val) for name, val in headers.items()) if req._tunnel_host: tunnel_headers = {} proxy_auth_hdr = "Proxy-Authorization" if proxy_auth_hdr in headers: tunnel_headers[proxy_auth_hdr] = headers[proxy_auth_hdr] # Proxy-Authorization should not be sent to origin # server. del headers[proxy_auth_hdr] h.set_tunnel(req._tunnel_host, headers=tunnel_headers) try: h.request(req.get_method(), req.get_selector(), req.data, headers) except socket.error, err: # XXX what error? h.close() > raise URLError(err) E URLError: <urlopen error [Errno 111] Connection refused> err = error(111, 'Connection refused') h = <httplib.HTTPConnection instance at 0x7fc628a7b050> headers = {'Accept': 'application/json', 'Connection': 'close', 'Content-Length': '20', 'Content-Type': 'application/json;charset=UTF-8', ...} host = '127.0.0.1:51085' http_class = <class httplib.HTTPConnection at 0x7fc630ddb460> http_conn_args = {} req = <selenium.webdriver.remote.remote_connection.Request instance at 0x7fc628a7b7a0> self = <urllib2.HTTPHandler instance at 0x7fc628a7b560> /usr/lib/python2.7/urllib2.py:1198: URLError ========================================================================================== FAILURES ========================================================================================== _____________________________________________________________________________ testClickShouldTimeout[WebKitGTK] ______________________________________________________________________________ driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="9a9ffaa7-777c-4cf4-8a02-42321898effe")>, pages = <conftest.Pages object at 0x7fc628984f90> def testClickShouldTimeout(driver, pages): pages.load("simpleTest.html") driver.set_page_load_timeout(0.01) with pytest.raises(TimeoutException): > driver.find_element_by_id("multilinelink").click() E Failed: DID NOT RAISE <class 'selenium.common.exceptions.TimeoutException'> driver = <selenium.webdriver.webkitgtk.webdriver.WebDriver (session="9a9ffaa7-777c-4cf4-8a02-42321898effe")> pages = <conftest.Pages object at 0x7fc628984f90> WebDriverTests/imported/selenium/py/test/selenium/webdriver/common/page_load_timeout_tests.py:39: Failed
Attachments
Note You need to log in before you can comment on or make changes to this bug.