robotframework - How to use if and else condition when matching xpath count =0 and greater than 0 -


${result}=    run keyword , ignore error    matching xpath count xpath=${node a}  run keyword if    '${result[0]}' == '0'    click element    ${node a}  else  click element    ${node b} 

how else condition here

${result}=    run keyword , ignore error    matching xpath count xpath=${node a} run keyword if    '${result[0]}' == '0' ...    click element    ${node a} ...    else ...    click element    ${node b} 

does above work? if not, please provide more information


Comments