编程知识 cdmana.com

解决selenium headless模式下填写表单失败

                  .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

版权声明
本文为[osc_gt7nq50v]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4272511/blog/4714162

Scroll to Top