def xpath_pick_one(self, xpaths):
for xpathi, xpath in enumerate(xpaths):<EOL><INDENT>try:<EOL><INDENT>return self.xpath(xpath, [<NUM_LIT:1>, <NUM_LIT:1>])[<NUM_LIT:0>]<EOL><DEDENT>except UnexpectedContentException as e:<EOL><INDENT>if xpathi == len(xpaths) - <NUM_LIT:1>:<EOL><INDENT>raise<EOL><DEDENT><DEDENT><DEDENT>
Try each of the xpaths successively until
a single element is found. If no xpath succeeds
then raise the last UnexpectedContentException caught.