how to use capybara has_text
问题 So now I've got cucumber/capybara/selenium hitting a google app script, which is great, but for some reason I can't seem to check for text in the body of the page in the way I expect. In the debugger I can grab the page object, which I can in the browser has the expected text. Scanning the html directly shows the text appearing twice, and yet page.has_text? appears false: (rdb:1) p page.html.scan(/Introduction Video/) ["Introduction Video", "Introduction Video"] (rdb:1) p page.has_text?