scriptotek / alma-slipsomat

Tool for syncing Alma letters XSL files with a local folder
MIT License
15 stars 10 forks source link

test command fails with chromedriver #30

Open danmichaelo opened 6 years ago

danmichaelo commented 6 years ago

slipsomat hangs when requesting browser.driver.current_url for the popup window using chromedriver 2.34.522932. Works in firefox and phantomjs.

[1/1] Testing "borrow1.xml" using language "English"
^CTraceback (most recent call last):
  File "/Users/danmichael/.pyenv/versions/3.5.1/bin/slipsomat", line 11, in <module>
    load_entry_point('slipsomat', 'console_scripts', 'slipsomat')()
  File "/Users/danmichael/projects/scriptotek/alma-slipsomat/slipsomat/slipsomat.py", line 1085, in main
    Shell(browser).cmdloop()
  File "/Users/danmichael/.pyenv/versions/3.5.1/lib/python3.5/cmd.py", line 138, in cmdloop
    stop = self.onecmd(line)
  File "/Users/danmichael/.pyenv/versions/3.5.1/lib/python3.5/cmd.py", line 217, in onecmd
    return func(arg)
  File "/Users/danmichael/projects/scriptotek/alma-slipsomat/slipsomat/slipsomat.py", line 1008, in do_test
    self.execute(test_XML, *arg.split('@'))
  File "/Users/danmichael/projects/scriptotek/alma-slipsomat/slipsomat/slipsomat.py", line 1061, in execute
    function(self.browser, *args)
  File "/Users/danmichael/projects/scriptotek/alma-slipsomat/slipsomat/slipsomat.py", line 890, in test_XML
    if 'beanContentParam=htmlContent' in browser.driver.current_url:
  File "/Users/danmichael/.pyenv/versions/3.5.1/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 574, in current_url
    return self.execute(Command.GET_CURRENT_URL)['value']
  File "/Users/danmichael/.pyenv/versions/3.5.1/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 306, in execute
    response = self.command_executor.execute(driver_command, params)
  File "/Users/danmichael/.pyenv/versions/3.5.1/lib/python3.5/site-packages/selenium/webdriver/remote/remote_connection.py", line 464, in execute
    return self._request(command_info[0], url, body=data)
  File "/Users/danmichael/.pyenv/versions/3.5.1/lib/python3.5/site-packages/selenium/webdriver/remote/remote_connection.py", line 488, in _request
    resp = self._conn.getresponse()
  File "/Users/danmichael/.pyenv/versions/3.5.1/lib/python3.5/http/client.py", line 1174, in getresponse
    response.begin()
  File "/Users/danmichael/.pyenv/versions/3.5.1/lib/python3.5/http/client.py", line 282, in begin
    version, status, reason = self._read_status()
  File "/Users/danmichael/.pyenv/versions/3.5.1/lib/python3.5/http/client.py", line 243, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/Users/danmichael/.pyenv/versions/3.5.1/lib/python3.5/socket.py", line 575, in readinto
    return self._sock.recv_into(b)
KeyboardInterrupt