Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

test command fails with chromedriver #30

Open
danmichaelo opened this issue Jan 4, 2018 · 0 comments
Open

test command fails with chromedriver #30

danmichaelo opened this issue Jan 4, 2018 · 0 comments

Comments

@danmichaelo
Copy link
Member

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
@danmichaelo danmichaelo changed the title test command does not work with chromedriver test command fails with chromedriver Jan 4, 2018
danmichaelo added a commit that referenced this issue Nov 14, 2018
I'm not sure if we can rely on the html window always being the latest
one, but let's try.
danmichaelo added a commit that referenced this issue Jan 8, 2019
Had a suspicion that the workaround introduced in 0c605f3 was too
simple. Still haven't found a *proper* way to do this. #30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant