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