Closed vjeantet closed 6 months ago
Hello, That won't work.
I can suggest something that covers all cases:
WHEN the input[type="submit"] exists, THEN click on it. WHEN the input[type="submit"] does not exist THEN press ENTER.
Hello, That won't work.
I can suggest something that covers all cases:
WHEN the input[type="submit"] exists, THEN click on it. WHEN the input[type="submit"] does not exist THEN press ENTER.
Sounds much more resilient. If you don't mind, please add some tests to hasten the reviews.
updated to handle the two cases, with tests.
Attention: Patch coverage is 80.00000%
with 2 lines
in your changes are missing coverage. Please review.
Project coverage is 41.96%. Comparing base (
9a4c5b6
) to head (b5bcd39
). Report is 61 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
pkg/provider/browser/browser.go | 80.00% | 1 Missing and 1 partial :warning: |
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hello,
This PR proposition updates the way the autofill func submits the form: Instead of locating the submit button and clicking on it, it send an Enter keypress.
I had to implement this to make it works with my company authentification web form, which has no html submit button, but an image with javascript events linked to it.