Wednesday, 29 July 2020

trying to click a radio button using puppeteer, newbie here, how do i do this?

const puppeteer = require('puppeteer');(async function main() {try {const browser=await puppeteer.launch({headless: false}); const page=await browser.newPage(); page.setUserAgent('test browser');await page.goto('https://post.c.r.aigslist.org/c/hou');//i had to put a couple of dots in the url, apparently the dont allow cr.a.i.g.s.list posts here. //apparently automoderator doesnt like that url..console.log("loaded");await page.click('what goes here?')} catch (e) { console.log('our error',e);} })();

Submitted July 29, 2020 at 07:43AM by smoknfx

No comments:

Post a Comment