I need to set default value for UiElement in order to check is it valid or not.
What I need to set as a default value?
Let me know which activity are you using for the UiElement
You can try using Element Exist activity, so that you can place a if condition
If element exists it will output True, else False
accordingly you can place your logic in IF-Else condition
Hope this helps