public GenericWait(WebDriverWait wait, ButtonWaitEnum waitOption) { this.wait = wait; this.waitOption = waitOption; }
/// <summary> /// Creates an object using passed <code>IWebElement</code> and <code>WebDriverWait</code>. Then wait class constructor is called with usage of wait option passed as an argument. /// </summary> /// <param name="buttonWebElement">Represents <code>IWebElement</code> of a given page button.</param> /// <param name="wait">Represents <code>WebDriverWait</code> init setting.</param> /// <param name="waitOption">Represents an option of a <code>Wait</code> object to be created.</param> public GenericButton(IWebElement buttonWebElement, WebDriverWait wait, ButtonWaitEnum waitOption) : this(buttonWebElement, wait) { this.waitOption = waitOption; }
/// <summary> /// Creates an object using passed <code>IWebElement</code> and <code>string</code> to set a child element using id locator. Then <code>WebDriverWait</code> is used to set wait field and wait option to call a /// wait object constructor. /// </summary> /// <param name="buttonParentElement">Represents parent <code>IWebElement</code> for initalized button object.</param> /// <param name="buttonXPathLocator">Represents an XPath locator for the button object.</param> /// <param name="wait">Represents an option of a <code>Wait</code> object to be created.</param> /// <param name="waitOption">Represents an option of a <code>Wait</code> object to be created.</param> public GenericButton(IWebElement buttonParentElement, string buttonXPathLocator, WebDriverWait wait, ButtonWaitEnum waitOption) : this(buttonParentElement.FindElements(By.XPath(buttonXPathLocator)).FirstOrDefault(), wait, waitOption) { }
/// <summary> /// Creates an object using passed <code>IWebElement</code> and <code>WebDriverWait</code>. Then wait class constructor is called with usage of wait option passed as an argument. /// </summary> /// <param name="buttonWebElement">Represents <code>IWebElement</code> of a given page button.</param> /// <param name="wait">Represents <code>WebDriverWait</code> init setting.</param> /// <param name="waitOption">Represents an option of a <code>Wait</code> object to be created.</param> public HistoryFilterInitButton(IWebElement buttonWebElement, WebDriverWait wait, ButtonWaitEnum waitOption) : base(buttonWebElement, wait, waitOption) { }
/// <summary> /// Creates an object using passed <code>IWebElement</code> and <code>string</code> to set a child element using id locator. Then <code>WebDriverWait</code> is used to set wait field and wait option to call a /// wait object constructor. /// </summary> /// <param name="buttonParentElement">Represents parent <code>IWebElement</code> for initalized button object.</param> /// <param name="buttonXPathLocator">Represents an XPath locator for the button object.</param> /// <param name="wait">Represents an option of a <code>Wait</code> object to be created.</param> /// <param name="waitOption">Represents an option of a <code>Wait</code> object to be created.</param> public HistoryFilterInitButton(IWebElement buttonParentElement, string buttonXPathLocator, WebDriverWait wait, ButtonWaitEnum waitOption) : base(buttonParentElement, buttonXPathLocator, wait, waitOption) { }
/// <summary> /// Creates an object using passed <code>IWebElement</code> and <code>string</code> to set a child element using id locator. Then <code>WebDriverWait</code> is used to set wait field and wait option to call a /// wait object constructor. /// </summary> /// <param name="buttonParentElement">Represents parent <code>IWebElement</code> for initalized button object.</param> /// <param name="buttonXPathLocator">Represents an XPath locator for the button object.</param> /// <param name="wait">Represents an option of a <code>Wait</code> object to be created.</param> /// <param name="waitOption">Represents an option of a <code>Wait</code> object to be created.</param> public ProjectListButton(IWebElement buttonParentElement, string buttonXPathLocator, WebDriverWait wait, ButtonWaitEnum waitOption) : base(buttonParentElement, buttonXPathLocator, wait, waitOption) { }
/// <summary> /// Creates an object using passed <code>IWebElement</code> and <code>WebDriverWait</code>. Then wait class constructor is called with usage of wait option passed as an argument. /// </summary> /// <param name="buttonWebElement">Represents <code>IWebElement</code> of a given page button.</param> /// <param name="wait">Represents <code>WebDriverWait</code> init setting.</param> /// <param name="waitOption">Represents an option of a <code>Wait</code> object to be created.</param> public ProjectListButton(IWebElement buttonWebElement, WebDriverWait wait, ButtonWaitEnum waitOption) : base(buttonWebElement, wait, waitOption) { }
public ButtonWait(WebDriverWait wait, ButtonWaitEnum waitOption) : base(wait, waitOption) { this.wait = wait; this.waitOption = waitOption; }
/// <summary> /// Creates an object using passed <code>IWebElement</code> and <code>WebDriverWait</code>. Then wait class constructor is called with usage of wait option passed as an argument. /// </summary> /// <param name="buttonWebElement">Represents <code>IWebElement</code> of a given page button.</param> /// <param name="wait">Represents <code>WebDriverWait</code> init setting.</param> /// <param name="waitOption">Represents an option of a <code>Wait</code> object to be created.</param> public ListMenuButton(IWebElement buttonWebElement, WebDriverWait wait, ButtonWaitEnum waitOption) : base(buttonWebElement, wait, waitOption) { }
/// <summary> /// Creates an object using passed <code>IWebElement</code> and <code>WebDriverWait</code>. Then wait class constructor is called with usage of wait option passed as an argument. /// </summary> /// <param name="buttonWebElement">Represents <code>IWebElement</code> of a given page button.</param> /// <param name="wait">Represents <code>WebDriverWait</code> init setting.</param> /// <param name="waitOption">Represents an option of a <code>Wait</code> object to be created.</param> public NavBarButton(IWebElement buttonWebElement, WebDriverWait wait, ButtonWaitEnum waitOption) : base(buttonWebElement, wait, waitOption) { }