public static bool SelectLabIDItemForDomain(String itemName, String Domain) { try { return(Control_ActionUtilities.Dropdown_SelectItem(LabMappingsPage.SelectLabIdForDomain(Domain), itemName, "Unable to select " + itemName)); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }
public static bool ValidateLengthOfControl(String DomainName, String ItemName) { try { if (LabMappingsPage.SelectionLabMappingDomainDropDown.SelectElement.SelectedOption.Text.Length == DomainName.Length && LabMappingsPage.SelectLabIdForDomain(DomainName).SelectElement.SelectedOption.Text.Length == ItemName.Length) { return(true); //Console.Write(LabMappingsPage.SelectionLabMappingDomainDropDown.WebElement.GetCssValue("width")); } else { return(false); } } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }