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

Unable to locate element: //*[@id="pnnext"] #3

Open
toannd96 opened this issue Mar 23, 2021 · 0 comments
Open

Unable to locate element: //*[@id="pnnext"] #3

toannd96 opened this issue Mar 23, 2021 · 0 comments

Comments

@toannd96
Copy link

toannd96 commented Mar 23, 2021

new.py:135: DeprecationWarning: use options instead of firefox_options
  driver = webdriver.Firefox(firefox_options=webdriver.FirefoxOptions())
Traceback (most recent call last):
  File "new.py", line 182, in <module>
    rows = profiles_loop()  # gets links to profiles from a google page, then select next page
  File "new.py", line 62, in profiles_loop
    next_button = driver.find_element_by_xpath('//*[@id="pnnext"]')
  File "/home/dactoan/py/scrapy-linkedin/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 394, in find_element_by_xpath
    return self.find_element(by=By.XPATH, value=xpath)
  File "/home/dactoan/py/scrapy-linkedin/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 976, in find_element
    return self.execute(Command.FIND_ELEMENT, {
  File "/home/dactoan/py/scrapy-linkedin/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/home/dactoan/py/scrapy-linkedin/venv/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //*[@id="pnnext"]
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