Verification of presence of one text of 2 texts in the page using selenium2library & Robot Framework
问题 I want to test if the page contains "TEXT1 or "TEXT2". Page Should Contain TEXT1 or TEXT2. Any suggestion how can I do this? Currently I can only check for one text. 回答1: You can use Page Should Contain Element with a locator xpath=//*[contains(text(),'TEXT1') or contains(text(),'TEXT2')] 回答2: Thanks Slanec for the info. I've also found out another way to solve this just using Robot Framework, it goes like this. @{VAR1} = Run Keyword and Ignore Error Wait Until Page Contains TEXT1 Run Keyword