Page 1 of 1
Locked Fields
Posted: Thu Aug 10, 2017 10:58 am
by Christian Dabnor
Hello there. This is probably a really simple question, but one I can't find the answer for. I want to find out if, when one tick box is checked, another is locked. I have the code running to check that the first checkbox is checked, but I can't see how to check the locked/unlocked status of the second.
Thank you in adcvance for your assistance.
Re: Locked Fields
Posted: Thu Aug 10, 2017 11:31 am
by odklizec
Hi,
Without seeing you AUT or, at very least, Ranorex snapshot of the problematic elements, there is not much anyone here could do or suggest. Please upload a Ranorex snaphot (not screenshot!) of the element in question. Thanks.
Re: Locked Fields
Posted: Thu Aug 10, 2017 12:18 pm
by Christian Dabnor
Hello again. Thank you for your response. I appear to have resolved it, however. If it'll help anyone else, I did
Code: Select all
public void Mouse_Click_PCI_ComplianceEnable_PCI_Compliance_Checking2()
{
{
Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Manager_Front_Screen.MainSystemDetails.PCI_ComplianceEnable_PCI_Compliance_Checking' at 8;6.", repo.Manager_Front_Screen.MainSystemDetails.PCI_ComplianceEnable_PCI_Compliance_CheckingInfo);
repo.Manager_Front_Screen.MainSystemDetails.PCI_ComplianceEnable_PCI_Compliance_Checking.Click("8;6");
{
Ranorex.Control c= new Ranorex.Control(repo.Manager_Front_Screen.MainSystemDetails.PCI_ComplianceEnable_PCI_Compliance_Checking);
if (c.GetPropertyValue<bool>("Checked"))
{
if (repo.Manager_Front_Screen.MainSystemDetails.PCI_Compliance_Enable_Auto_Logout.Enabled)
{
Report.Info("Auto Logout is enabled");
}
else
{
Report.Info("Auto Logout is disabled");
}
}
}
}
}