编程知识 cdmana.com

Solve the failure of filling in the form in selenium headless mode

                  .AddArgument "--headless" ' Headless mode hides the Explorer form 
        .AddArgument "--no-sandbox"
        .AddArgument "--disable-dev-shm-usage"
        .AddArgument "window-size=1920,1080" ' This is particularly important 

                     Reference material  https://stackoverflow.com/questions/45370018/selenium-working-with-chrome-but-not-headless-chrome

版权声明
本文为[osc_ gt7nq50v]所创,转载请带上原文链接,感谢

Scroll to Top