My friend and I were discussing a script for automating a certain task and the solution involved using Selenium to automate the pressing of certain buttons.
However when we click the send button of a form, how do we know it always has the same function? Even if a script works the first 100 times, the page may totally change 101.
In our case, I would like to open my e-mail account and automatically respond to some messages. However it is possible the buttons can move around.
Therefore our automation task will break whenever the website changes and we can't do anything except build from scratch and identify the change however small it is.
Is there any way to build robust automation tasks?