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 chromedriver - which version to Use ? #10

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

Issue with chromedriver - which version to Use ? #10

St3pH4ck opened this issue Apr 2, 2020 · 0 comments

Comments

@St3pH4ck
Copy link

St3pH4ck commented Apr 2, 2020

Hi when i used a recent version of chromedriver i have problem but if i used a old version of chromedriver its begin to work but i have this follow messages:

Traceback (most recent call last):
File "the-endorser.py", line 47, in
profiles.append(client.get_endorsements(profile_url.geturl()))
File "/home/stephane/the-endorser/linkedin.py", line 101, in get_endorsements
name = self.webdriver.find_element_by_css_selector(".pv-top-card-v3--list > li").text
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 627, in find_element_by_css_selector
return self.find_element(by=By.CSS_SELECTOR, value=css_selector)
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 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".pv-top-card-v3--list > li"}
(Session info: headless chrome=80.0.3987.162)
(Driver info: chromedriver=2.39.562737 (dba483cee6a5f15e2e2d73df16968ab10b38a2bf),platform=Linux 5.4.0-kali4-amd64 x86_64)

With this log:
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:33073/session {"capabilities": {"firstMatch": [{}], "alwaysMatch": {"browserName": "chrome", "platformName": "any", "goog:chromeOptions": {"extensions": [], "args": ["headless", "window-size=1024x3000", "user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_1 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/14A403 Safari/602.1"]}}}, "desiredCapabilities": {"browserName": "chrome", "version": "", "platform": "ANY", "goog:chromeOptions": {"extensions": [], "args": ["headless", "window-size=1024x3000", "user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_1 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/14A403 Safari/602.1"]}}}
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:33073
DEBUG:urllib3.connectionpool:http://127.0.0.1:33073 "POST /session HTTP/1.1" 200 798
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:33073/session/session id OK - Replace by me/url {"url": "https://www.linkedin.com/uas/login",
"sessionId": " session id OK - Replace by me"}
......
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
WARNING:root:Successfully logged in to LinkedIn but failed to extract your identifier.

I don't have any graph in the directory digraph
It doesn't work for me

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