xuzhengyi1995 / Manga_downloader

A Manga download framework using selenium.
607 stars 57 forks source link

Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="pageSliderCounter"]"} #137

Closed Lorne0 closed 1 year ago

Lorne0 commented 1 year ago

macOS 12.4 (M1), Python 3.9

I encountered Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="pageSliderCounter"]"}

I've tried to downgrade my chrome version to 99 or 109, not using 110. Then no matter what the chrome version is, it still failed by the above error (since https://github.com/xuzhengyi1995/Manga_downloader/issues/136 makes me failed to use chrome 110)

Is it the update in BW site? Could anyone help for this?

Thanks!!

Lorne0 commented 1 year ago

I solved my problem like this: driver.find_element(By.CSS_SELECTOR, '.swal2-confirm.swal2-styled').click() # click "確定" \# go to the MANGA_URL page again driver.set_window_size(RES[0], RES[1]) driver.get(MANGA_URL)

This is the same problem as here: https://github.com/xuzhengyi1995/Manga_downloader/issues/116