-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form fields not recognized correctly #36
Comments
Looking the HTML, the not recognized input is: Here another page where locust doesn't recognize correctly: Looking the HTML, the input fragment is: Regarding the repo structure, I guess that the solution is to add some lines in testing scripts: https://github.com/buttercup/locust/blob/master/source/inputs.js#L5 @perry-mitchell , Shall I do a PR adding Thanks for all buttercup environment! |
Hi @situplastik - Thanks for the detailed report, and sorry on the huge delay. Has been a busy Q1 for me. The issue here is that the detection is imperfect, of course, but one aspect of this is that it relies currently on language-specific terms like username and password. Having this functionality internationalised would be a nightmare.. so I'm not entirely sure of the best way to move forward here. There's no standard way to build a login/registration form, so there's nothing to lean on here. We could try to set an example here by allowing internationalised form detection, but then I think we'd better redesign the detection method to allow for simpler transation support of keywords into all languages. Any suggestions on this point are very welcome. |
Hi @perry-mitchell , don't worry about the delay, sometimes is hard to find a good moment to spend with ;) Yes, I totally agree with you and the solution must be as easy and maintainable possible. To solve the @christianschneider89 initial issue, a non-complex solution would be to edit regex testing with "%LIKE%" before & after "username" as Looking my example, no good idea (beside your suggestion of doing some i18n detection structure) appear in my mind... Maybe if a form only have 2 fields and the second field pass the password check, locust could presume that the other field is an username, but I'm quite sure that the cure will be worse than the disease... many bugs or non-expected results could be appear :( |
On the URL https://www.postfinance.ch/ap/ba/fp/html/e-finance/home?login the form is not recognized correctly.
As you can see in the screenshot locust recognizes the second and the third field.
The first two fields are mandatory, the third is optional.
The text was updated successfully, but these errors were encountered: