public void MouseOver() { LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator); this.ElementHelpers.MouseOverJs(this.ElementHelpers.FindElement(this.MainLocator)); LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator); }
public void Click(int index = 0) { LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, index); this.ElementHelpers.Click(this.MainLocator, index); LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, index); }
public void WaitForIt() { LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator); Wait.ForElement(this.MainLocator); LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator); }
private void ClickByJsForVtYtdPtd(int index = 0) { LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, index); this.ElementHelpers.ClickByJs(By.CssSelector("bs-checkbox :nth-child(2)"), index); LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, index); }
private void ClickByJsForVt(int index = 0) { LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, index); this.ElementHelpers.ClickByJs(By.XPath("//h3[contains(text(), 'Value Types')]/../..//*[contains(@class,'value-picker__item ')]/label/input"), index, 0); LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, index); }
public void ClickByJs() { LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator); Wait.StandardWait(); this.ElementHelpers.ClickByJs(this.MainLocator); LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator); }
public void SelectValue(string value) { LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, value); if (value != null) { this.ElementHelpers.Click(this.MainLocator); } LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, value); }
public void EnterValueByJs(string value) { LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, value); if (value != null) { this.ElementHelpers.SendKeysByJs(this.MainLocator, value); } LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, value); }
public void Uncheck() { LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator); if (this.IsChecked()) { this.Click(); } LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator); }
public void CheckByJsForVt(int index = 0) { LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, index); if (!this.IsCheckedByJsForVt(index)) { this.ClickByJsForVt(index); } LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, index); }
public void UncheckByJsVtYtdPtd(int index = 0) { LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, index); Wait.StandardWait(); if (this.IsCheckedByJsForVtYtdPtd(index)) { this.ClickByJsForVtYtdPtd(index); } LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, index); }
public void SetValue(bool?value) { LoggerElements.LogStart(MethodBase.GetCurrentMethod().Name, this.MainLocator, value); if (value != null) { if (value == true) { this.Check(); } else { this.Uncheck(); } } LoggerElements.LogEnd(MethodBase.GetCurrentMethod().Name, this.MainLocator, value); }