{"action":"created","issue":{"url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/682","labels_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/682/labels{/name}","comments_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/682/comments","events_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/682/events","html_url":"https://github.com/nightwatchjs/nightwatch/issues/682","id":111498506,"number":682,"title":"getText on css before content text returns empty string","user":{"login":"pagreczner","id":1648256,"avatar_url":"https://avatars.githubusercontent.com/u/1648256?v=3","gravatar_id":"","url":"https://api.github.com/users/pagreczner","html_url":"https://github.com/pagreczner","followers_url":"https://api.github.com/users/pagreczner/followers","following_url":"https://api.github.com/users/pagreczner/following{/other_user}","gists_url":"https://api.github.com/users/pagreczner/gists{/gist_id}","starred_url":"https://api.github.com/users/pagreczner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagreczner/subscriptions","organizations_url":"https://api.github.com/users/pagreczner/orgs","repos_url":"https://api.github.com/users/pagreczner/repos","events_url":"https://api.github.com/users/pagreczner/events{/privacy}","received_events_url":"https://api.github.com/users/pagreczner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-14T21:35:33Z","updated_at":"2015-11-27T14:13:31Z","closed_at":"2015-11-27T14:13:31Z","body":"Hi,\r\n\r\nFor an element on the page that has content rendered by the css `before` and `content` styles, I am not able to have `getText` or `elementIdText` return that displayed value.\r\n\r\nExample element:\r\n```\r\n.someStyle:before {\r\ncontent: 'A prepended message';\r\n}\r\n```\r\n\r\n```\r\n<div class=\"someStyle\"></div>\r\n```\r\n\r\nIt will render a div with `A prepended message`.  So I expect\r\n\r\n`getText(\".someStyle\", function(res) {console.log(res);})` to print out that it has the value of `\"A prepended message\"` but it will return an empty string.  Same holds true for `elementIdText` and `containsText` assertion.\r\n\r\nWhat is the proper way to get the text for this type of rendered element?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/comments/160147933","html_url":"https://github.com/nightwatchjs/nightwatch/issues/682#issuecomment-160147933","issue_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/682","id":160147933,"user":{"login":"beatfactor","id":419506,"avatar_url":"https://avatars.githubusercontent.com/u/419506?v=3","gravatar_id":"","url":"https://api.github.com/users/beatfactor","html_url":"https://github.com/beatfactor","followers_url":"https://api.github.com/users/beatfactor/followers","following_url":"https://api.github.com/users/beatfactor/following{/other_user}","gists_url":"https://api.github.com/users/beatfactor/gists{/gist_id}","starred_url":"https://api.github.com/users/beatfactor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beatfactor/subscriptions","organizations_url":"https://api.github.com/users/beatfactor/orgs","repos_url":"https://api.github.com/users/beatfactor/repos","events_url":"https://api.github.com/users/beatfactor/events{/privacy}","received_events_url":"https://api.github.com/users/beatfactor/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T14:13:31Z","updated_at":"2015-11-27T14:13:31Z","body":"Sounds like this may be a limitation of Selenium."}}