Skip to content

Tag: puppeteer

How to click on element with text in Puppeteer

Is there any method (didn’t find in API) or solution to click on element with text? For example I have html: And I want to click on element in which text is wrapped (click on button inside .elements), like: Answer Short answer This XPath expression will query a button which contains the text “Butt…