I’m using Selenium to spam certain fields with the naughty strings (GitHub - minimaxir/big-list-of-naughty-strings: The Big List of Naughty Strings is a list of strings which have a high probability of causing issues when used as user-input data.) on certain fields then submitting the form.
However, I don’t know what errors could manifest without actually watching the screen while it runs. So I have just added
Thread.Sleep(50); at the end instead of asserting any elements (as I said I don’t know how the form would react).
I’m wondering if there is a better way other than watching the screen. Are there common things I can check? (maybe automate checking for text ‘Error’ or some HTTP response?)