zoukankan      html  css  js  c++  java
  • chrome开启headless模式以及代理

    1

    chrome.exe google-chrome-stable --disable-gpu --remote-debugging-port=9222 --headless -remote-debugging-address=0.0.0.0 --disable-xss-auditor --no-sandbox --disable-web-security
    

    2 关闭浏览器情况下,开启有界面浏览器

    chrome.exe --disable-gpu --remote-debugging-port=9222 --user-data-dir=remote-profile -remote-debugging-address=0.0.0.0 --disable-xss-auditor --no-sandbox --disable-web-security
    

    3

    chrome.exe google-chrome-stable --disable-gpu --remote-debugging-port=9222 -remote-debugging-address=0.0.0.0 --disable-xss-auditor --no-sandbox --disable-web-security
    
    self.browser = self.loop.run_until_complete(
           pyppeteer.launch(executablePath="C:Program Files (x86)GoogleChromeApplicationchrome.exe", headless=False, dumpio=True, ignoreHTTPSErrors=True,
                            args=['--disable-gpu', '--no-sandbox', '--disable-web-security',
                                  '--disable-xss-auditor', '--proxy-server=127.0.0.1:8080']))
    
  • 相关阅读:
    CodeForces
    CodeForces
    FZU
    FZU
    UESTC
    测试用例概述
    软件测试流程
    软件测试(二)软件测试过程
    软件测试(一)软件的生命周期(SDLC,Systems Development Life Cycle,SDLC)
    系统测试的策略
  • 原文地址:https://www.cnblogs.com/huim/p/11473869.html
Copyright © 2011-2022 走看看