# File lib/selenium/client/javascript_expression_builder.rb, line 90 90: def text_match(pattern) 91: case pattern 92: when Regexp 93: "null != element.innerHTML.match(#{pattern.inspect})" 94: else 95: "element.innerHTML == '#{quote_escaped(pattern)}'" 96: end 97: end