You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've updated my Python Selenium to the latest version 2.53.0 and it doesn't work with Python 3.
When I run tests - I get an error:
../venv/lib/python3.4/site-packages/pytest_selenium/drivers/phantomjs.py:17: in phantomjs_driver
return PhantomJS(**kwargs)
../venv/lib/python3.4/site-packages/selenium/webdriver/phantomjs/webdriver.py:50: in __init__
service_args=service_args, log_path=service_log_path)
../venv/lib/python3.4/site-packages/selenium/webdriver/phantomjs/service.py:44: in __init__
if not self._args_contain("--cookies-file="):
../venv/lib/python3.4/site-packages/selenium/webdriver/phantomjs/service.py:54: in _args_contain
return len(filter(lambda x:x.startswith(arg), self.service_args)) > 0
TypeError: object of type 'filter' has no len()
To make it work in Python 3 you can do (e.g.): len(list(filter(lambda ...)))
P.S.: I've tried 2.52.0 and it works
The text was updated successfully, but these errors were encountered:
OS:
CentOS
Selenium Version:
2.53.0
Browser:
PhantomJS
Python Version:
3.4
I've updated my Python Selenium to the latest version
2.53.0
and it doesn't work with Python 3.When I run tests - I get an error:
To make it work in Python 3 you can do (e.g.):
len(list(filter(lambda ...)))
P.S.: I've tried
2.52.0
and it worksThe text was updated successfully, but these errors were encountered: