If code for element exists results in failure
Hello, I am trying to do following code:
if Aliases.browser.Page("https://devtradewatch/tradewatch/Orders/viewOrdList.do",.FindElement("#colTD_0").Exists:
Log.Message("Records are available, ntmOrders Search Passed")
else:
Log.Message("Records are not displayed, NTM Orders Failed")
Functionally it works correctly but whenever it does not find the element, it logs The object "Page("https://devtradewatch/tradewatch/Orders/viewOrdList.do")" does not exist" error in log.
How do I make it to not log it logs as all I am concerned with is using the following commands
Thank you for the suggestion. That would definitely help me for better representation of code and understanding as well.
I could make it work by using WaitElement instead of FindElement.
Thanks!