question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use Protractor with Puppeteer?

See original GitHub issue

Question/Feature Request

Angular CLI: 1.6.7
Node: 9.5.0
OS: linux x64
Angular: 5.2.3
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.6.7
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.29
@angular-devkit/schematics: 0.0.52
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.7
@schematics/angular: 0.1.17
typescript: 2.5.3
webpack: 3.10.0

So I tried already to use the headless features, like you say on the readme.

chromeOptions: {
   args: [ '--headless', '--disable-gpu', '--window-size=800x600' ]
}

However, I’m more interested in using e2e (protractor) in combination with Chrome headless by using Puppeteer. Just like CodeceptJS  supports this already.

Currently it can’t find Chrome: unknown error: cannot find Chrome binary. (since I don’t want to install it)

I just want to run Protractor like I can run karma via Puppeteer. Without the need to install Chrome on my setup. But instead via npm, so I can have better continuous integration.

Regards, Melroy

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:16

github_iconTop GitHub Comments

58reactions
jardakotesoveccommented, Feb 8, 2018

@danger89 I am successfully using that with following settings:

    chromeOptions: {
      args: process.env.HEADLESS
        ? ['--headless', '--no-sandbox', '--disable-dev-shm-usage']
        : [],
      binary: process.env.HEADLESS ? puppeteer.executablePath() : undefined,
    },

7reactions
moefinleycommented, Aug 12, 2019

Does anyone know an automated way of keeping the webdriver and the version of chrome\chromium that Puppeteer has downloaded in sync? Is there a way to get Selenium to use Puppeteer’s browser object instead of webdriver so I don’t need to keep them in sync?

Read more comments on GitHub >

github_iconTop Results From Across the Web

protractor-puppeteer-plugin - npm
Start using protractor-puppeteer-plugin in your project by running `npm i protractor-puppeteer-plugin`. There are no other projects in the ...
Read more >
Why did Google develop Puppeteer if Protractor was already ...
1 Answer 1 · Protractor is an external web application testing tool while Puppeteer is node module of the Chromium engine. · Chromium...
Read more >
Difference between Puppeteer and Protractor - GeeksforGeeks
1. It is made to support some specific engines only. It can support different types of browsers. ; 2. In this, to test...
Read more >
Comparison Between Puppeteer & Protractor - Tutorialspoint
6, Puppeteer can be used to work on the majority of features in the DevTools in the Chrome browser. Protractor cannot be used...
Read more >
Protractor-puppeteer-plugin - npm.io
The main goal of this plugin is to enable the use of two tools in autotests written on Protractor. Also, this plugin can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found