Solve the failure to fill in the form in selenium headless mode

                  .AddArgument "--headless" '无头模式隐藏游览器窗体
        .AddArgument "--no-sandbox"
        .AddArgument "--disable-dev-shm-usage"
        .AddArgument "window-size=1920,1080" '这一条尤其重要

                    参考资料 https://stackoverflow.com/questions/45370018/selenium-working-with-chrome-but-not-headless-chrome

Guess you like

Origin blog.51cto.com/4432704/2548642