Visible, Enabled and Valid returning incorrect values
Posted: Thu Jan 19, 2012 5:30 pm
I have a .Net application that I'm working on and when selecting certain drop down values I'm trying to make sure that a group of "refund address" text boxes and combo boxes do not appear in the GUI.
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.
Is there another way I can try to determine that these objects aren't visible?
Thanks,
Jason
If I execute:
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?
Thanks,
Jason