I'm having issue in negate the bool variable or comparison of FALSE against a bool variable to perform Run Keyword If
My Code is
Test Case
${isExist}= Run Keyword And Return Status Element Should Be Visible ${element_Id}
Run Keyword If ${isExist} == false click element ${cancelbtn}
Here I'm facing an Run time error
Evaluating expression 'True and' failed: SyntaxError: unexpected EOF while parsing (, line 1)
I tried the following comparison too
${isExist} == 'false''${isExist}' == 'false'${isExist} == ${false}'${isExist}' == '${false}'!${isExist}
Note: log to console ${isExist} - It logs the appropriate Boolean value in the console window.
andcoming from in your error? - ILostMySpoon${isExist}evaluate to when logging to console? - ILostMySpoonEvaluating expression 'True and' failed:no matter what the actual value of${isExist}. Can you show the actual line of code that gives that error? - Bryan Oakley