I find Selenium tests to be a pain to write and quite brittle as CSS selectors and UI layouts change quite often, especially for MVP-stage products.
This got me thinking about how to use AI to automate UI testing. What if you could just type the description of a test case and an AI agent would execute the correct actions in a browser and verify the final state?
For example, a test for the Reddit site might be "Test that creating a post puts it at the top of the /new page." The AI would spin up a browser, navigate to Reddit, perform the actions to create a post, navigate to "/new", and verify this post is at the top.
This feels like a new type of automated UI testing because there is no Selenium code or even a no-code interface, simply a text prompt and an expected final state. The main benefit of this approach is not having to constantly update Selenium tests while still giving you assurance that the changes you ship aren't breaking functionality.
Let me know your thoughts! Would you use this kind of automated testing tool? Do you even care about UI testing for your personal projects or for work projects that are still in the development phase? Thanks!