AutoWaifuClaimerV3 icon indicating copy to clipboard operation
AutoWaifuClaimerV3 copied to clipboard

Unable to locate element: .slateTextArea-1Mkdgw

Open ouroboros998 opened this issue 4 years ago • 8 comments

bb

ouroboros998 avatar Dec 16 '20 23:12 ouroboros998

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 avatar Dec 17 '20 00:12 JasonYuan869

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")

JasonYuan869 avatar Dec 17 '20 01:12 JasonYuan869

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

ouroboros998 avatar Dec 17 '20 02:12 ouroboros998

OS?

JasonYuan869 avatar Dec 17 '20 02:12 JasonYuan869

Windows 10

ouroboros998 avatar Dec 17 '20 02:12 ouroboros998

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

JasonYuan869 avatar Dec 17 '20 02:12 JasonYuan869

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.

JasonYuan869 avatar Dec 17 '20 02:12 JasonYuan869