Вы можете использовать
1) Подтвердить
assert(@driver.find_element(:tag_name => "body").text.include?("Name"),"Page contains the text NAME")
2) подтвердить
verify { assert(@driver.find_element(:tag_name => "body").text.include?("Name"),"Page contains the text NAME")}