Test for Object Visible
Hi How do you test for an object visibility in TC?
my mapped name:
Aliases.MyView_GUI.HwndSource_BinaryDialogView.BinaryDialogView.Grid.Viewbox.Grid.Border.Grid.TextblockReallyDeleteUserUsername
I assign the return value of the mapped name of above to a varaible as follows
var user = Aliases.MyView_GUI.HwndSource_BinaryDialogView.BinaryDialogView.Grid.Viewbox.Grid.Border.Grid.TextblockReallyDeleteUserUsername
then I test for Visible but it says can't find obejct and doesn't return anyhting
if(user.Visible)
{
Log.Message("Visible");
}
else
{
Log.Message("Not Visible");
}
why doesn't this work? TC gives me "the object does not exist".... which it does and is active on the screen.
this should be easy what am I missing?
thanks
great, thanks