Problem with switching to new window in Chrome (Python)

32 views
Skip to first unread message

Alexander Kruglov

unread,
Feb 11, 2012, 12:18:27 PM2/11/12
to Selenium Users
Hi all!
I need to test paypal integration.
User clicks on button (to submit a form), request goes to java servlet
(which responds back with specific url to paypal).
This works quite good for Firefox and IE, but wont for Chrome.

And moreover, it doesn't fail, it looks like chrome driver hangs
somewhere, because it doesn't return control back.
So, that is traceback that I got when I finally interrupted program.

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\selenium-2.19.1-py2.7.egg
\selenium\webdriv
er\remote\webelement.py", line 49, in submit
self._execute(Command.SUBMIT_ELEMENT)
File "C:\Python27\lib\site-packages\selenium-2.19.1-py2.7.egg
\selenium\webdriver\remote\webelement.py", line 194, in _execute
return self._parent.execute(command, params)
File "C:\Python27\lib\site-packages\selenium-2.19.1-py2.7.egg
\selenium\webdriver\remote\webdriver.py", line 151, in execute
response = self.command_executor.execute(driver_command, params)
File "C:\Python27\lib\site-packages\selenium-2.19.1-py2.7.egg
\selenium\webdriver\remote\remote_connection.py", line 280, in execute
return self._request(url, method=command_info[0], data=data)
File "C:\Python27\lib\site-packages\selenium-2.19.1-py2.7.egg
\selenium\webdriver\remote\remote_connection.py", line 321, in
_request
response = opener.open(request)
File "C:\Python27\lib\urllib2.py", line 394, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 412, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1199, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\Python27\lib\urllib2.py", line 1170, in do_open
r = h.getresponse(buffering=True)
File "C:\Python27\lib\httplib.py", line 1027, in getresponse
response.begin()
File "C:\Python27\lib\httplib.py", line 407, in begin
version, status, reason = self._read_status()
File "C:\Python27\lib\httplib.py", line 365, in _read_status
line = self.fp.readline()
File "C:\Python27\lib\socket.py", line 447, in readline
data = self._sock.recv(self._rbufsize)
KeyboardInterrupt

Any ideas how to workaround this?

Alexander Kruglov

unread,
Feb 11, 2012, 7:56:43 PM2/11/12
to Selenium Users
Here is Chromedriver log

[53.907][FINE]: Command received (/session/
be1607b8518e05efa8ed6c7254a3a21d/element) with params {
"sessionId": "be1607b8518e05efa8ed6c7254a3a21d",
"using": "class name",
"value": "button-common"
}
[53.907][FINER]: Waiting for all views to stop loading...
[53.907][FINER]: Done waiting for all views to stop loading
[54.063][FINER]: Waiting for all views to stop loading...
[54.064][FINER]: Done waiting for all views to stop loading
[54.064][FINE]: Command finished (/session/
be1607b8518e05efa8ed6c7254a3a21d/element) with response {
"sessionId": "be1607b8518e05efa8ed6c7254a3a21d",
"status": 0,
"value": {
"ELEMENT": ":wdc:1329007824001"
}
}
[54.067][FINE]: Command received (/session/
be1607b8518e05efa8ed6c7254a3a21d/element/:wdc:1329007824001/click)
with params {
"id": ":wdc:1329007824001",
"sessionId": "be1607b8518e05efa8ed6c7254a3a21d"
}
[54.067][FINER]: Waiting for all views to stop loading...
[54.068][FINER]: Done waiting for all views to stop loading
[54.204][FINER]: Waiting for all views to stop loading...

last command can not be completed.

Alexander Kruglov

unread,
Feb 13, 2012, 4:31:22 AM2/13/12
to Selenium Users
Sorry for abuse.
It looks like a bug in chromedriver and I found some similar issues in
selenium issue tracker
Reply all
Reply to author
Forward
0 new messages