public WebDriverNewAuditTypeConfigDialog(IWebDriver driver, WebDriverWait waiter, string id)
            : base(driver, waiter, "div#" + id)
        {
            Record        = new WebDriverDropDown(driver, waiter, "ACV_Record");
            Configuration = new WebDriverTextField(driver, waiter, "ACV_Configuration");

            Table = new FieldConfigurationTableControl(driver, waiter, id);

            OkButton     = new WebDriverButton(driver, waiter, "ACV_OK_btn");
            SaveButton   = new WebDriverButton(driver, waiter, "ACV_Save_btn");
            NewButton    = new WebDriverButton(driver, waiter, "ACV_New_btn");
            DeleteButton = new WebDriverButton(driver, waiter, "ACV_Delete_btn");
            CancelButton = new WebDriverButton(driver, waiter, "ACV_Cancel_btn");
            HelpButton   = new WebDriverButton(driver, waiter, "ACV_Help_btn");
        }
        public WebDriverAuditTypeConfigDialog(IWebDriver driver, WebDriverWait waiter, string id) : base(driver, waiter, "div#" + id)
        {
            Record        = new WebDriverDropDown(driver, waiter, "ACV_Record");
            Configuration = new WebDriverDropDown(driver, waiter, "ACV_Configuration");

            SelectFieldCriteriaDropDown = new WebDriverDropDownTextBoxFilterItem(driver, waiter, "property");
            Operator          = new WebDriverDropDownTextBoxOperatorItem(driver, waiter, "operator");
            AddCriteriaButton = new WebDriverButton(driver, waiter, "ACV_FieldCriteria_AddCriteria_btn");

            Table = new FieldConfigurationTableControl(driver, waiter, id);

            OkButton     = new WebDriverButton(driver, waiter, "ACV_OK_btn");
            SaveButton   = new WebDriverButton(driver, waiter, "ACV_Save_btn");
            NewButton    = new WebDriverButton(driver, waiter, "ACV_New_btn");
            DeleteButton = new WebDriverButton(driver, waiter, "ACV_Delete_btn");
            CancelButton = new WebDriverButton(driver, waiter, "ACV_Cancel_btn");
            HelpButton   = new WebDriverButton(driver, waiter, "ACV_Help_btn");
        }
Example #3
0
 public WebDriverDatePicker(IWebDriver driver, WebDriverWait waiter, string id, bool isOldControl = false)
     : base(driver, waiter, null)
 {
     if (!isOldControl)
     {
         SetSelectorString("div#" + id + " input.hasDatepicker");
         LabelElement = driver.FindElement(By.CssSelector("div#" + id + " div.lbl"));
         // If the Element is Disabled, then there SHOULD NOT be a Pick Button
         try
         {
             if (Element.GetAttribute("disabled").Equals("disabled"))
             {
                 // If the Element is disabled then there SHOULD NOT be a Pick Button
             }
         }
         catch (Exception)
         {
             // Disabled element is not set, so Element is NOT disabled, so it SHOULD have a Pick Button
             PickButton = new WebDriverButton(driver, waiter, Driver.FindElement(By.CssSelector("div#" + id + " button")).GetAttribute("id"));
         }
     }
     else
     {
         SetSelectorString(id + " input");
         // If the Element is Disabled, then there SHOULD NOT be a Pick Button
         try
         {
             if (Element.GetAttribute("disabled").Equals("disabled"))
             {
                 // If the Element is disabled then there SHOULD NOT be a Pick Button
             }
         }
         catch (Exception)
         {
             // Disabled element is not set, so Element is NOT disabled, so it SHOULD have a Pick Button
             PickButton = new WebDriverButton(driver, waiter, Driver.FindElement(By.CssSelector(id + " button")).GetAttribute("id"));
         }
     }
 }