JasonYuan869 / AutoWaifuClaimerV3

Automatically claims from the Discord Mudae bot.
MIT License
41 stars 39 forks source link

Unable to locate element: .slateTextArea-1Mkdgw #1

Closed ouroboros998 closed 1 year ago

JasonYuan869 commented 3 years ago

Interesting. I seemed to have forgotten to catch a NoSuchElementException thrown by Selenium on that line, which I have now addressed in 28341fb.

Are you sure you put the right login information to config.py? If you did, try commenting out the headless option on line 41 of browsers.py and seeing if the browser successfully logs in. If it does, then that is really weird.

Can you tell me what Python version you're running?

JasonYuan869 commented 3 years ago

That is really weird... I just downloaded Python 3.9 on my Windows system and it seems to work fine. I also tried modifying the options.add_argument() line top put my Firefox binary and it also works fine (interestingly it's not headless despite the -headless option).

Can you try just commenting out the options.add_argument() line and instead change the following line to: self.driver = webdriver.Firefox(executable_path=config.WEB_DRIVER_PATH, options=options, firefox_binary="/path/to/firefox")

ouroboros998 commented 3 years ago

Message: binary is not a Firefox executable I don't know what to do now xD

JasonYuan869 commented 3 years ago

OS?

ouroboros998 commented 3 years ago

Windows 10

JasonYuan869 commented 3 years ago

In that case, make sure that you're inputting the path using double backslashes. For example: "C:\\Program Files\\Mozilla Firefox\\firefox.exe".

JasonYuan869 commented 3 years ago

In that case, make sure that you're inputting the path using double backslashes. For example: "C:\\Program Files\\Mozilla Firefox\\firefox.exe".

Same goes with the geckodriver executable in config.py, unless it's in the main project folder.