Botmation Documentation

Input

Input

These BotAction's provide ways to input into a page as User.

Click

Does a left-mouse click on a HTML element by the provided HTML selector.

const click = (selector: string): BotAction => async(page) =>
await page.click(selector)

Example:

await chain(
click('form input[type="submit"]'),
waitForNavigation
)(page)

Type

Type with an imaginary "keyboard" the copy provided.

const type = (copy: string): BotAction => async(page) =>
await page.keyboard.type(copy)

Example:

await chain(
click('form input[name="username"]'),
type('my-username')
)(page)
Edit this page on GitHub

On this page

Baby Bot