public void ScrollElementByJs(By locator, int scroll) { LoggerSelenium.LogStart(MethodBase.GetCurrentMethod().Name); JsExecutor.ScrollElementBy(locator, scroll); LoggerSelenium.LogEnd(MethodBase.GetCurrentMethod().Name); }
public string GetValue(By locator) { LoggerSelenium.LogReturn(MethodBase.GetCurrentMethod().Name, locator); Wait.StandardWait(); return(JsExecutor.Value(locator)); }
public string GetTextByJs(By locator) { LoggerSelenium.LogReturn(MethodBase.GetCurrentMethod().Name, locator); Wait.StandardWait(); return(JsExecutor.InnerText(locator)); }
public void MouseOverJs(IWebElement element) { LoggerSelenium.LogStart(MethodBase.GetCurrentMethod().Name, element); Wait.StandardWait(); JsExecutor.MouseOver(element); LoggerSelenium.LogEnd(MethodBase.GetCurrentMethod().Name, element); }
public void ClickByJs(By locator, int index = 0, int scroll = -90) { LoggerSelenium.LogStart(MethodBase.GetCurrentMethod().Name, locator, index); JsExecutor.ScrollIntoView(locator); JsExecutor.ScrollBy(scroll); JsExecutor.Click(locator, index); LoggerSelenium.LogEnd(MethodBase.GetCurrentMethod().Name, locator, index); }
public void SendKeysByJs(By locator, string value) { LoggerSelenium.LogStart(MethodBase.GetCurrentMethod().Name, locator, value); Wait.StandardWait(); JsExecutor.SendKeys(locator, value); JsExecutor.CallEventOnElement(locator); LoggerSelenium.LogEnd(MethodBase.GetCurrentMethod().Name, locator, value); }
public bool DisabledByJs(By locator, int index = 0) { LoggerSelenium.LogReturn(MethodBase.GetCurrentMethod().Name, locator, index); return(JsExecutor.Disabled(locator, index)); }