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

Not stable #1

Open
obtim opened this issue Sep 18, 2023 · 0 comments
Open

Not stable #1

obtim opened this issue Sep 18, 2023 · 0 comments

Comments

@obtim
Copy link

obtim commented Sep 18, 2023

The code is not stable. It crashes in error after different times:
File "/root/rb-bot/rebelbetting/stream_website.py", line 78, in get_bet_info
info['Value'] = self.find_element(by=By.ID, value='Value').text
File "/root/rb-bot/rebelbetting/stream_website.py", line 27, in find_element
return self.browser.find_element(by=by, value=value)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 738, in find_element
return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 344, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.8/dist-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":"css selector","selector":"[id="Value"]"}
(Session info: headless chrome=117.0.5938.88); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
#0 0x55ef272496c3
#1 0x55ef26f1f1e7
#2 0x55ef26f66566
#3 0x55ef26f66651
#4 0x55ef26fa3a74
#5 0x55ef26f880ed
#6 0x55ef26fa1322
#7 0x55ef26f87e93
#8 0x55ef26f5a934
#9 0x55ef26f5b71e
#10 0x55ef2720ecc8
#11 0x55ef27212c00
#12 0x55ef2721d1ac
#13 0x55ef27213818
#14 0x55ef271e028f
#15 0x55ef27237e98
#16 0x55ef27238069
#17 0x55ef27248853
#18 0x7fb6f745a609 start_thread

What versions of the modules are you using?

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