Hi Guys,
I have a situation where a textblock is created whose name is either 'TrueTextBlock' or 'FalseTextBlock'. Ignoring the fact it's quite a poor idea to change the name of a textblock based on the text content is there a way I can do something like this:
Where ForExists returns 'true' if FalseTextBlock exists and 'false' if FalseTextBlock does not exist.
ForExists works to check if a control exists (correct me if I'm wrong), however it doesn't return a true or false value if the control in question exists or doesn't.
Is there such a function I could leverage to do what I want?
Cheers
I have a situation where a textblock is created whose name is either 'TrueTextBlock' or 'FalseTextBlock'. Ignoring the fact it's quite a poor idea to change the name of a textblock based on the text content is there a way I can do something like this:
if(Pages.HardCatNextGen.SilverlightApp.FalseTextblock.Wait.ForExists(1000))
Where ForExists returns 'true' if FalseTextBlock exists and 'false' if FalseTextBlock does not exist.
ForExists works to check if a control exists (correct me if I'm wrong), however it doesn't return a true or false value if the control in question exists or doesn't.
Is there such a function I could leverage to do what I want?
Cheers