forked from p2bauer/flightplan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
15 lines (13 loc) · 685 Bytes
/
test.js
File metadata and controls
15 lines (13 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const puppeteer = require('puppeteer')
const applyEvasions = require('./src/evasions')
const main = async () => {
const args = [ `--window-size=1200,900` ]
const browser = await puppeteer.launch({ headless: false, args })
const browsercontext = await browser.createIncognitoBrowserContext()
const page = (await browsercontext.pages())[0]
await page._client.send('Emulation.clearDeviceMetricsOverride')
applyEvasions(page, { maskWebRTC: true, maskPublicIP: '50.207.175.42' })
.then(() => page.goto('https://www.britishairways.com/travel/redeem/execclub/_gf/en_us?eId=106019&tab_selected=redeem&redemption_type=STD_RED'))
.catch((err) => console.log(err))
}
main()