Skip to content

Using Wendigo with TypeScript

angrykoala edited this page Dec 20, 2019 · 1 revision

Wendigo supports typescript and contains all necessary typings out-of-the-box, no extra packages required.

The following is a minimal example of a .ts file using Wendigo

import * as Wendigo from 'wendigo';

let browser: Wendigo.Browser;

async function main() {
    browser = await Wendigo.createBrowser();

    await browser.open("localhost:3030");
    // ...
    await Wendigo.stop();
}

main()
Clone this wiki locally