Example:
In Ruby/capybara I would do:
if page.has(element)?
do somenthing
elsif page.has(element2)?
do another thing
else
print "Do nothing"
How could i do it in robotframework ?
*** Keywords ***
given I need to verify some conditions
Example:
In Ruby/capybara I would do:
if page.has(element)?
do somenthing
elsif page.has(element2)?
do another thing
else
print "Do nothing"
How could i do it in robotframework ?
*** Keywords ***
given I need to verify some conditions
Seems you want to implement conditional logics. For that there is keyword called "Run Keyword If" in Robotframework. Please try to look documentation for that.
Here is a link that might be helpful.
https://blog.codecentric.de/en/2013/05/robot-framework-tutorial-loops-conditional-execution-and-more/