If I execute:
blah, blah2 and blah3 all return true even though the objects are not visible in the GUI. I can see maybe Valid returning true if the objects are there, just not displayed, but enabled and visible should return false.
Code: Select all
Ranorex.Text address1; var addressExists = Host.Local.TryFindSingle("/form[@controlname='MainForm']/element/form[@controlname='PaymentEntry']/container[@controlname='grpAddress']/text[@controlname='txtRefAddr_Line1']/text[@accessiblename='txtRefAddr_Line1']", out address1); //Assert.That(address1.Visible, Is.False); var blah = address1.Visible; var blah2 = address1.Enabled; var blah3 = address1.Valid;
Is there another way I can try to determine that these objects aren't visible?