Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with web driver phantomjs #9

Open
St3pH4ck opened this issue Apr 2, 2020 · 0 comments
Open

Issue with web driver phantomjs #9

St3pH4ck opened this issue Apr 2, 2020 · 0 comments

Comments

@St3pH4ck
Copy link

St3pH4ck commented Apr 2, 2020

/usr/lib/python3/dist-packages/selenium/webdriver/phantomjs/webdriver.py:49: UserWarning: Selenium support for PhantomJS has been deprecated, please use headless versions of Chrome or Firefox instead
warnings.warn('Selenium support for PhantomJS has been deprecated, please use headless '
Traceback (most recent call last):
File "the-endorser.py", line 38, in
with LinkedInClient(config.email, config.password, webdriver=driver.get(driver_path), save_cookie=config.save_cookie) as client:
File "/home/stephane/the-endorser/linkedin.py", line 27, in enter
self.__login(True if self.webdriver.capabilities['browserName'] == 'phantomjs' else False)
File "/home/stephane/the-endorser/linkedin.py", line 53, in _login
self.webdriver.find_element_by_id("username").send_keys(self.email)
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 361, in find_element_by_id
return self.find_element(by=By.ID, value=id
)
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 1014, in find_element
'value': value})['value']
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 318, in execute
self.error_handler.check_response(response)
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/errorhandler.py", line 208, in check_response
raise exception_class(value)
selenium.common.exceptions.WebDriverException: Message: Error - Unable to load Atom 'find_element' from file ':/ghostdriver/./third_party/webdriver-atoms/find_element.js'

Inside the logfile
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:57927/wd/hub/session/55cf5690-7501-11ea-98f1-b3e06e1e4d82/window/current/size {"width": 1024, "height": 3000, "windowHandle": "current", "sessionId": "55cf5690-7501-11ea-98f1-b3e06e1e4d82"}
DEBUG:urllib3.connectionpool:http://127.0.0.1:57927 "POST /wd/hub/session/55cf5690-7501-11ea-98f1-b3e06e1e4d82/window/current/size HTTP/1.1" 200 74
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:57927/wd/hub/session/55cf5690-7501-11ea-98f1-b3e06e1e4d82/url {"url": "https://www.linkedin.com/uas/login", "sessionId": "55cf5690-7501-11ea-98f1-b3e06e1e4d82"}
DEBUG:urllib3.connectionpool:http://127.0.0.1:57927 "POST /wd/hub/session/55cf5690-7501-11ea-98f1-b3e06e1e4d82/url HTTP/1.1" 200 74
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:57927/wd/hub/session/55cf5690-7501-11ea-98f1-b3e06e1e4d82/element {"using": "id", "value": "username", "sessionId": "55cf5690-7501-11ea-98f1-b3e06e1e4d82"}
DEBUG:urllib3.connectionpool:http://127.0.0.1:57927 "POST /wd/hub/session/55cf5690-7501-11ea-98f1-b3e06e1e4d82/element HTTP/1.1" 404 114
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant