Fix references to text inside views from cucumber tests.

Fixes for finding text inside views while testing with cucumber.