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

Update to IG broke the script, must update selector probably #11

Open
kitalia opened this issue Jan 29, 2024 · 1 comment
Open

Update to IG broke the script, must update selector probably #11

kitalia opened this issue Jan 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kitalia
Copy link

kitalia commented Jan 29, 2024

Describe the bug

Update to IG broke the script, must update selector probably

To Reproduce

Try to send a DM and:

[DEBUG  ] Finished Request
 Exception in thread Thread-4 (_start_messages):
 Traceback (most recent call last):
   File "/opt/homebrew/Cellar/[email protected]/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
     self.run()
   File "/opt/homebrew/Cellar/[email protected]/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 982, in run
     self._target(*self._args, **self._kwargs)
   File "/Users/x/Desktop/git/mr.dm/src/ui/progressscreen/progressscreen.py", line 232, in _start_messages
     if self.find_element(SELECTORS["save_login_info"]):
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/Users/x/Desktop/git/mr.dm/src/ui/progressscreen/progressscreen.py", line 311, in find_element
     return self.session.driver.find_element(By.XPATH, XPATH)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/opt/homebrew/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 742, in find_element
     return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/opt/homebrew/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 348, in execute
     self.error_handler.check_response(response)
   File "/opt/homebrew/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
     raise exception_class(message, screen, stacktrace)
 selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//button[text()='Save info']"}
   (Session info: chrome=121.0.6167.85); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception

Expected behavior
a DM should be sent

Desktop (please complete the following information):
any

@kitalia kitalia added the bug Something isn't working label Jan 29, 2024
@Guhan-SenSam
Copy link
Member

Will take a look at this and update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants