Behat/Mink — Issue #186: getText returns different values between chrome and firefox
Author: spocky
Created: 2012-02-02 16:56:05+00:00
State: open

The getText() method, which is used in "I should see" behaviour does not return the same result when launched on chrome and firefox.

Chrome (16.0.912.63) returns only visible text on the page
Firefox (9.0.1) returns all text strings on the page, visible or not (meaning : css "display:none" text, all strings in select elements...).

Moreover, text in Chrome that has a "text-transform=uppercase" is returned as uppercase in getText, but in firefox, it's lowercase (as of now, i've bypassed this issue by using a "Then I should see text matching '(?i)my string'").

Do you know any method to get the correct behaviour in firefox (or is it a bug in sahi?) ?