0

I found the item

<button class="button btn--rounded btn-primary page-container__footer-button" data-testid="page-container-footer-next" role="button" tabindex="0">Confirm</button> 

Selected the class

And I run the code in the console

document.getElementsByClassName('button btn--rounded btn-primary page-container__footer-button')[0].click();

But this code doesn't make the button click.
In other cases this code works

Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339
  • 1
    `getElementsByClassName()` expects a *single* class of a *single* element. Use `querySelector()` along with a valid CSS selector instead: `document.querySelector('.button.btn--rounded.btn-primary.page-container__footer-button').click()` – Rory McCrossan Jul 18 '23 at 12:50

0 Answers0