mrWh1te / Botmation

A simple TypeScript framework for declaratively composing bots with Puppeteer
https://botmation.dev
MIT License
18 stars 2 forks source link

clickText #104

Closed mrWh1te closed 3 years ago

mrWh1te commented 3 years ago

Is your feature request related to a problem? Please describe. A click BotAction with a string input that describes text of an element to click. Therefore, instead of a string html selector representing an element to click, this is the text inside

Describe the solution you'd like clickText(text: string): BotAction

Thoughts Could make it specific for button or anchor links, but would prefer it to be element agnostic since sometimes click events are manually attached to dom elements like div's

mrWh1te commented 3 years ago

added in #105

released in core v1.3