if statement - How to use OR condition for Keywords in Robot Framework? -


i in need check condition going passed if 1 of conditions being true.

the keywords want use below:

page should contains element    //some xpath    or  page should contains element    //some xpath    or  page should contains element    //some xpath    or  page should contains element    //some xpath 

used run keyword if not working

you can join xpath result sets | equivalent or.

${count}    matching xpath count    //div[@prop='value'|//table[@id='bar']|//p run keyword if    ${count} > 0    keyword 

if want fail if none of xpaths found:

page should contain element    xpath=//div[@prop='value'|//table[@id='bar']|//p 

Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -