Small refactoring: use at_xpath when applicable

because it looks nicer