Using Protractor with PhantomJS

前端 未结 2 524
刺人心
刺人心 2020-12-11 11:28

I need to E2E test my AngularJS Application an Protractor seems like the right way to do it. Setup was fairly straightforward and it works like a charm in Chrome. I need how

2条回答
  •  孤街浪徒
    2020-12-11 11:55

    You may use chrome itself in headless mode in 59 version onwards without any external tools.

    capabilities: { 
       browserName: 'chrome', 
       chromeOptions: 
      { 
       args: [ "--headless", "--window size=800,600" ] 
      } 
    }
    

提交回复
热议问题