How to use the Keyword "Wait Until Page Contains"

3,939 views
Skip to first unread message

Nagaraj Hebbar

unread,
Mar 22, 2016, 5:55:45 AM3/22/16
to robotframework-users
Hi All,
           How to use the keyword "Wait Until Page Contains" . This is the right way "Wait Until Page Contains    <Some Text>    timeout=1.5 minutes"  but i have tried with this format robot framework will not wait for the Some Text  what i have entered so my test case fails. Can any one tell how to use this key word.

DươngQ Nguyễn

unread,
Mar 23, 2016, 4:32:44 AM3/23/16
to robotframework-users
Maybe the page you're waitting for which contain many <Some Text>, so RF cannot detect this. You can get longer timeout or detect locator by another than by text/string..on page.

Kevin O.

unread,
Mar 23, 2016, 9:00:11 AM3/23/16
to robotframework-users
Wait Until Page Contains looks at the text of elements the page. This does not include text that is present in form elements such as an input box. Their text is stored as a value and is not present inside any elements.

The implementation is trying to find any element with this locator: xpath=//*[contains(., %s)]" % utils.escape_xpath_value(text);
Reply all
Reply to author
Forward
0 new messages