{"action":"created","issue":{"url":"https://api.github.com/repos/rtomac/robotframework-selenium2library/issues/391","labels_url":"https://api.github.com/repos/rtomac/robotframework-selenium2library/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/rtomac/robotframework-selenium2library/issues/391/comments","events_url":"https://api.github.com/repos/rtomac/robotframework-selenium2library/issues/391/events","html_url":"https://github.com/rtomac/robotframework-selenium2library/pull/391","id":75239088,"number":391,"title":"Add 'Wait Until Element Text Is' -keyword","user":{"login":"molsky","id":1943521,"avatar_url":"https://avatars.githubusercontent.com/u/1943521?v=3","gravatar_id":"","url":"https://api.github.com/users/molsky","html_url":"https://github.com/molsky","followers_url":"https://api.github.com/users/molsky/followers","following_url":"https://api.github.com/users/molsky/following{/other_user}","gists_url":"https://api.github.com/users/molsky/gists{/gist_id}","starred_url":"https://api.github.com/users/molsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molsky/subscriptions","organizations_url":"https://api.github.com/users/molsky/orgs","repos_url":"https://api.github.com/users/molsky/repos","events_url":"https://api.github.com/users/molsky/events{/privacy}","received_events_url":"https://api.github.com/users/molsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-11T14:21:35Z","updated_at":"2015-05-11T16:59:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rtomac/robotframework-selenium2library/pulls/391","html_url":"https://github.com/rtomac/robotframework-selenium2library/pull/391","diff_url":"https://github.com/rtomac/robotframework-selenium2library/pull/391.diff","patch_url":"https://github.com/rtomac/robotframework-selenium2library/pull/391.patch"},"body":"I have found some use for this kind of keyword when verifying text content in error message elements on forms (Text is too short -> Text is too long -> Text contains characters that are now allowed etc. when doing input field checks with Javascript)."},"comment":{"url":"https://api.github.com/repos/rtomac/robotframework-selenium2library/issues/comments/100978654","html_url":"https://github.com/rtomac/robotframework-selenium2library/pull/391#issuecomment-100978654","issue_url":"https://api.github.com/repos/rtomac/robotframework-selenium2library/issues/391","id":100978654,"user":{"login":"molsky","id":1943521,"avatar_url":"https://avatars.githubusercontent.com/u/1943521?v=3","gravatar_id":"","url":"https://api.github.com/users/molsky","html_url":"https://github.com/molsky","followers_url":"https://api.github.com/users/molsky/followers","following_url":"https://api.github.com/users/molsky/following{/other_user}","gists_url":"https://api.github.com/users/molsky/gists{/gist_id}","starred_url":"https://api.github.com/users/molsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molsky/subscriptions","organizations_url":"https://api.github.com/users/molsky/orgs","repos_url":"https://api.github.com/users/molsky/repos","events_url":"https://api.github.com/users/molsky/events{/privacy}","received_events_url":"https://api.github.com/users/molsky/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T16:59:27Z","updated_at":"2015-05-11T16:59:27Z","body":"`Wait Until Page Contains` is problematic in certain situations.\r\n\r\n1. There is Javascript code directly in HTML file's source code. In the beginning of that file function X updates element's text and that contains the text that you are looking for so that check will pass always. \r\n\r\n2. Page have multiple elements that will have same text in certain situations and you are looking that all of them have specific text or only just one specific element will have it.\r\n\r\nNow I agree that `Wait Until Element Contains` would be much better option than this implementation where text must be exactly same than given in argument."}}