You can shorten this block to simply

    all('.results li').map(&:text)