IF .. then else issue
Hello! So I am having this problem with If .. Then and else
I am trying to make it so that IF this Testtemplatedetails exists it will run the steps below. But if it doesnt exist it should run else.
When I execute the steps it will jump down the the else part instantly. Ive checked with highlight that the "Testtemplatedetails" exists, which it does. So why does it skip it?
MarcusBengtsson_0-1676624274077.png
I'm not sure but it looks like in your If statement the 2nd condition is a string value.
Also sould it not be "IF : 'Aliases.etc.etc.Exists EQAULS True'" ?
You have the following alias defined as Aliases.browser.TestTemplateDetails
If you want to check if the object exists, then use the keyword "If Object" followed by as Aliases.browser.TestTemplateDetails = Exists.
If you want to check a property of the object that exists, then use the keyword "If...Then" followed by Aliases.browser.TestTemplateDetails.Exists = True.
rraghvani_0-1676627747396.png
Note, the Value