Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Running Automation Scripts

How to run your automation script

Using puppeteer driver

import puppeteer from 'puppeteer-core'

(async () => {
    const sessionUUIID = "<sessionUUID_HERE>"
    const browserURL = `wss://ws.tasknet.co/${sessionUUIID}`
    
    // Connection to browser
    const browser = await puppeteer.connect({ 
        browserWSEndpoint: browserURL,
    })
    
    const page = await browser.newPage()
    
    await page.goto("https://www.google.com")
    
    // Do Something
    
    // Close connection
    browser.disconnect()
})()

Using Api

Last updated