Closed rexo6565 closed 8 months ago
You most probably changed the tab in the driver or refreshed the page, mainly did something manually in the opened driver window. Is that right? If not, please upload some screenshots or video about the error you get.
ok its working now >>> when you adding followers ?
it works but that's the error i get afterwards its the same code
Traceback (most recent call last):
bot.start()
File "/home/rexxxo/tiktok-bot/bot.py", line 103, in start
self.select_service(choice)
File "/home/rexxxo/tiktok-bot/bot.py", line 115, in select_service
self.start_service(div, video_url)
File "/home/rexxxo/tiktok-bot/bot.py", line 139, in start_service
remaining_time = self.check_remaining_time(div)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rexxxo/tiktok-bot/bot.py", line 150, in check_remaining_time
text = element.text
^^^^^^^^^^^^
File "/home/rexxxo/.local/lib/python3.11/site-packages/selenium/webdriver/remote/webelement.py", line 90, in text
return self._execute(Command.GET_ELEMENT_TEXT)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rexxxo/.local/lib/python3.11/site-packages/selenium/webdriver/remote/webelement.py", line 395, in _execute
return self._parent.execute(command, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rexxxo/.local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 345, in execute
self.error_handler.check_response(response)
File "/home/rexxxo/.local/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: stale element not found in the current frame
(Session info: chrome=123.0.6312.86); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#stale-element-reference-exception
Stacktrace:
File "/home/rexxxo/tiktok-bot/bot.py", line 205, in
0 0x5613f4516873
1 0x5613f420c8c6
2 0x5613f4211e75
3 0x5613f4213bce
4 0x5613f4213c5c
5 0x5613f4251ae2
6 0x5613f42795a2
7 0x5613f424be98
8 0x5613f427976e
9 0x5613f4297c19
10 0x5613f4279343
11 0x5613f424a593
12 0x5613f424af5e
13 0x5613f44da85b
14 0x5613f44de7b5
15 0x5613f44c8581
16 0x5613f44df342
17 0x5613f44ad88f
18 0x5613f4505738
19 0x5613f450590b
20 0x5613f45159c4
21 0x7f80e9a1b3ec