I would like to click a submit button with puppeteer. the only problem is that there are 2 submit buttons on the page with the same class. Both have no ID. But both have different text. So should I select the text? And do you have any idea how I can do it for myself?
<button type="submit" class="btn btn-info btn-lg btn-block">
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Submit
</button>
<button type="submit" class="btn btn-default btn-block" formaction="https://www.example.de/" formmethod="get">
<span class="glyphicon glyphicon-home" aria-hidden="true"></span> exit</button>