autonome / puppeteer-fx

Minimal implementation of the Puppeteer API for Firefox.
MIT License
31 stars 3 forks source link

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

Open bbandla opened 5 years ago

bbandla commented 5 years ago

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);

SirPhemmiey commented 4 years ago

Any solution to this?