I’m using Selenium to spam certain fields with the naughty strings (https://github.com/minimaxir/big-list-of-naughty-strings/) 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?)