Admittedly this one is unlikely to be useful to many, but it could still serve
as a useful example for Selenium 2. Also, I haven’t posted an example since
I’m getting married in a few short weeks, and our gift list has now opened for
any guests that would like to buy us something for the occasion. We debated over
having a list in the first place, but in the end decided that it was probably
for the best. One of our hesitations was that we didn’t want to know what people
had bought for us before the day, and having an online gift list makes it
possible to ‘spoil’ the surprise.
With the list only having been open a couple of days, the temptation was already
pretty difficult to resist and we decided that it was okay to see what has been
bought just so long as we don’t find out who’s bought what. Unfortunately this
isn’t easy on the site as they’re listed together, so I was sneakily able to
construct an XPath that extracted the necessary information. I’ve now combined
into a Selenium 2 example using Java, which can be found below.