public void VerifyToggleStatus_OFF() { int count = 0; int permissionCount = Permissions.GetCount(); for (int i = 0; i < permissionCount; i++) { Count = i.ToString(); if (RolePermissionsOFF.VerifyAllToggleOFF()) { count++; } } }
public void ChangetoOFFStatus(string role_perm, string section) { int permissionCount = Permissions.GetCount(); if (section == "WebPortal") { for (int i = 0; i < permissionCount; i++) { Count = i.ToString(); if (RolePermissionsWebPortal.Text() == role_perm) { if (RolePermissionsON.VerifyToggleON()) { RolePermissionsON.Click(); BRLogger.AssertIsTrue(RolePermissionsOFF.VerifyToggleOFF(), "Verify Off Status"); break; } } } } else if (section == "DriverApp") { for (int i = 0; i < permissionCount; i++) { Count = i.ToString(); if (RolePermissionsDriverApp.Text() == role_perm) { if (RolePermissionsON.VerifyToggleON()) { RolePermissionsON.Click(); BRLogger.AssertIsTrue(RolePermissionsOFF.VerifyToggleOFF(), "Verify Off Status"); break; } } } } }