Yudaotor / EsportsHelper

通过selenium模拟浏览器来自动观看电竞比赛获取电竞典藏罐,当没有比赛时智能休眠.(Automatically watch e-sports games through undetected_chromedriver to farm esports capsule, when there is no match intelligent sleep.)
MIT License
201 stars 20 forks source link

Tip to use (headless problem, package version) #141

Open DoTheBestMayB opened 2 months ago

DoTheBestMayB commented 2 months ago
  1. Don't use one which at release. There are issues related to package version compatibility. For example: There's a Chrome path parsing problem with undetected-chromedriver.
  2. After running 'pip install requirements', update the packages to their latest versions.
  3. Add the following code at line 108 of Webdriver.py(at EsportsHelper folder). There's a headless bug in recent Chrome versions that causes the browser to display a white screen.

https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/2022#issuecomment-2358946196

options.add_argument("--window-position=-2400,-2400")

image

FriedGenera commented 2 months ago

I tried this, but it keeps saying my credentials for my account don't work, but it works when I turn off headless

Seems there was already an issue raised - https://github.com/Yudaotor/EsportsHelper/issues/136#issue-2407439436

DRCX commented 1 month ago

确实,我也发现这个问题了