Webpages are fickle.
Right when I think I know where everything is a label changes, a button is moved a couple of pixels to somewhere completely different in the page. For the last year or so, I have been working full time on a project building automated checks for a user interface.
There are a lot of challenges in UI automation – timing, selecting the right tests, figuring how to make tests powerful – but handling page objects is always the first I have to figure out.
Here are a few object recognition challenges I have come across and how I got past them.