Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

cssContainingText requiring different texts in chrome and firefox #1462

Closed
anirvann opened this issue Oct 21, 2014 · 1 comment
Closed

cssContainingText requiring different texts in chrome and firefox #1462

anirvann opened this issue Oct 21, 2014 · 1 comment

Comments

@anirvann
Copy link

Hi,

I have been running e2e tests for a web app in chrome. On running the same tests in Firefox it causes issue due to text transform.
The login button has a text-transform of UPPERCASE.
So element(by.cssContainingText('button','LOG IN') works in chrome.
but requires element(by.cssContainingText('button','Log In') to work in firefox.

The solution would be to find out the browser and put text likewise? Am I missing something here?

P.S. - Have not tested in IE / Safari. Chrome v37. Firefox v31

@hankduan
Copy link
Contributor

This is fixed in master: #1217
For now (since its not released yet), you can use one of the workarounds or use master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants