Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

puppeteer-fx TypeError : Click is not a fiunction #6

Open
bbandla opened this issue Mar 1, 2019 · 1 comment
Open

puppeteer-fx TypeError : Click is not a fiunction #6

bbandla opened this issue Mar 1, 2019 · 1 comment

Comments

@bbandla
Copy link

bbandla commented Mar 1, 2019

  • Puppeteer version:1.12.2
  • Node.js version:v11.6.0

I am trying to get puppeteer-fx to work, code below is launching the firefox browser, but i get the TypeError: scope.context.currentPage.click is not a function. Works in Chrome, no issues.
Looks like its not including puppeteer with puppeteer-fx during the runtime? Any suggestions please?

const b = process.env.PUPPETEER_BROWSER || 'chrome';
const puppeteer = b === 'firefox' ?
require('puppeteer-fx') : require('puppeteer')

const World = function() {
scope.driver = puppeteer;
scope.context = {};
};

await scope.context.currentPage.goto(CREDS.url);
await scope.context.currentPage.click(loginpage.loginfields.USERNAME_SELECTOR);

TechQuery added a commit that referenced this issue Mar 15, 2019
@SirPhemmiey
Copy link

Any solution to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants