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

I get an Error please fix it #3

Closed
Pekgame opened this issue Dec 22, 2021 · 0 comments
Closed

I get an Error please fix it #3

Pekgame opened this issue Dec 22, 2021 · 0 comments

Comments

@Pekgame
Copy link

Pekgame commented Dec 22, 2021

This is an error that I get

DevTools listening on ws://127.0.0.1:56417/devtools/browser/2afe83c4-3722-40d5-9732-adf09f9fde1b
[1222/140204.564:INFO:CONSOLE(66)] "The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu", source: https://assets-cdn.kahoot.it/controller/v2/assets/js/vendors~main.4b4f0117.chunk.js (66)
[1222/140204.610:INFO:CONSOLE(160)] "[object Object]", source: https://assets-cdn.kahoot.it/controller/v2/assets/js/vendors~main.4b4f0117.chunk.js (160)
[1222/140204.614:INFO:CONSOLE(160)] "[object Object]", source: https://assets-cdn.kahoot.it/controller/v2/assets/js/vendors~main.4b4f0117.chunk.js (160)
[1222/140204.637:INFO:CONSOLE(160)] "[object Object]", source: https://assets-cdn.kahoot.it/controller/v2/assets/js/vendors~main.4b4f0117.chunk.js (160)
[1222/140204.751:INFO:CONSOLE(160)] "[object Object]", source: https://assets-cdn.kahoot.it/controller/v2/assets/js/vendors~main.4b4f0117.chunk.js (160)
[1222/140204.770:INFO:CONSOLE(160)] "[object Object]", source: https://assets-cdn.kahoot.it/controller/v2/assets/js/vendors~main.4b4f0117.chunk.js (160)
[1222/140204.773:INFO:CONSOLE(160)] "[object Object]", source: https://assets-cdn.kahoot.it/controller/v2/assets/js/vendors~main.4b4f0117.chunk.js (160)
[1222/140204.784:INFO:CONSOLE(160)] "[object Object]", source: https://assets-cdn.kahoot.it/controller/v2/assets/js/vendors~main.4b4f0117.chunk.js (160)
[1222/140204.790:INFO:CONSOLE(160)] "[object Object]", source: https://assets-cdn.kahoot.it/controller/v2/assets/js/vendors~main.4b4f0117.chunk.js (160)
[1222/140204.794:INFO:CONSOLE(160)] "[object Object]", source: https://assets-cdn.kahoot.it/controller/v2/assets/js/vendors~main.4b4f0117.chunk.js (160)
[1222/140204.798:INFO:CONSOLE(160)] "[object Object]", source: https://assets-cdn.kahoot.it/controller/v2/assets/js/vendors~main.4b4f0117.chunk.js (160)
[1222/140204.801:INFO:CONSOLE(160)] "[object Object]", source: https://assets-cdn.kahoot.it/controller/v2/assets/js/vendors~main.4b4f0117.chunk.js (160)
[1222/140204.806:INFO:CONSOLE(160)] "[object Object]", source: https://assets-cdn.kahoot.it/controller/v2/assets/js/vendors~main.4b4f0117.chunk.js (160)
[1222/140204.819:INFO:CONSOLE(160)] "[object Object]", source: https://assets-cdn.kahoot.it/controller/v2/assets/js/vendors~main.4b4f0117.chunk.js (160)
[1222/140205.840:INFO:CONSOLE(160)] "[object Object]", source: https://assets-cdn.kahoot.it/controller/v2/assets/js/vendors~main.4b4f0117.chunk.js (160)
h:\Project\Python Projects\Kahoot Bot\main.py:26: DeprecationWarning: find_element_by_* commands are deprecated. Please use find_element() instead
  browser.find_element_by_css_selector('#inputSession').send_keys(pin)
Exception in thread Thread-1:
Traceback (most recent call last):
  File "C:\Users\win10\AppData\Local\Programs\Python\Python39\lib\threading.py", line 973, in _bootstrap_inner
    self.run()
  File "C:\Users\win10\AppData\Local\Programs\Python\Python39\lib\threading.py", line 910, in run
    self._target(*self._args, **self._kwargs)
  File "h:\Project\Python Projects\Kahoot Bot\main.py", line 39, in <lambda>
    Thread(target = lambda : createBot(gamePin, baseName + str(i))).start()
  File "h:\Project\Python Projects\Kahoot Bot\main.py", line 26, in createBot
    browser.find_element_by_css_selector('#inputSession').send_keys(pin)
  File "C:\Users\win10\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 808, in find_element_by_css_selector
    return self.find_element(by=By.CSS_SELECTOR, value=css_selector)
  File "C:\Users\win10\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1244, in find_element
    return self.execute(Command.FIND_ELEMENT, {
  File "C:\Users\win10\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 424, in execute
    self.error_handler.check_response(response)
  File "C:\Users\win10\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, 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":"#inputSession"}
  (Session info: headless chrome=96.0.4664.110)
Stacktrace:
Backtrace:
        Ordinal0 [0x002F39D3+2505171]
        Ordinal0 [0x0028AE61+2076257]
        Ordinal0 [0x00192498+1057944]
        Ordinal0 [0x001BCB74+1231732]
        Ordinal0 [0x001E6D92+1404306]
        Ordinal0 [0x001D5A2A+1333802]
        Ordinal0 [0x001E5168+1397096]
        Ordinal0 [0x001D58BB+1333435]
        Ordinal0 [0x001B23E4+1188836]
        Ordinal0 [0x001B323F+1192511]
        GetHandleVerifier [0x0047CA56+1554566]
        GetHandleVerifier [0x00524B9C+2243020]
        GetHandleVerifier [0x00380D2B+523099]
        GetHandleVerifier [0x0037FDD0+519168]
        Ordinal0 [0x0029031D+2097949]
        Ordinal0 [0x002943A8+2114472]
        Ordinal0 [0x002944E2+2114786]
        Ordinal0 [0x0029E061+2154593]
        BaseThreadInitThunk [0x761DFA29+25]
        RtlGetAppContainerNamedObjectPath [0x77A37A9E+286]
        RtlGetAppContainerNamedObjectPath [0x77A37A6E+238]
        (No symbol) [0x00000000]
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