2

I use chromeless to fill in and validate a form. The form generates a validation popup when I click on the submit button:

enter image description here

How do I click on this popup and validate the form?

Sulli
  • 763
  • 1
  • 11
  • 33
  • Is that just a [`window.confirm()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm) dialog? – zero298 May 14 '18 at 14:40
  • @zero298 I don't know how to check that but it looks like a default dialog, yes – Sulli May 14 '18 at 14:45
  • 1
    Then I don't think there is a way yet. Consider this issue on the project's GitHub: [chromeless#61](https://github.com/graphcool/chromeless/issues/61) – zero298 May 14 '18 at 14:47
  • I would suggest you take a look at this as well. https://stackoverflow.com/questions/2963677/can-i-prevent-an-alert-with-a-google-chrome-extension However, for validation pop-ups, the above linked GitHub page has the solution. – Mikaal Anwar May 20 '18 at 01:50

1 Answers1

1

using evaluate to overwrite window.confirm

chromeless.evaluate(() => window.confirm = () => true)
MK Vimalan
  • 1,213
  • 14
  • 28