예제 #1
0
        public void ScrollElementByJs(By locator, int scroll)
        {
            LoggerSelenium.LogStart(MethodBase.GetCurrentMethod().Name);

            JsExecutor.ScrollElementBy(locator, scroll);

            LoggerSelenium.LogEnd(MethodBase.GetCurrentMethod().Name);
        }
예제 #2
0
        public string GetValue(By locator)
        {
            LoggerSelenium.LogReturn(MethodBase.GetCurrentMethod().Name, locator);

            Wait.StandardWait();

            return(JsExecutor.Value(locator));
        }
예제 #3
0
        public string GetTextByJs(By locator)
        {
            LoggerSelenium.LogReturn(MethodBase.GetCurrentMethod().Name, locator);

            Wait.StandardWait();

            return(JsExecutor.InnerText(locator));
        }
예제 #4
0
        public void MouseOverJs(IWebElement element)
        {
            LoggerSelenium.LogStart(MethodBase.GetCurrentMethod().Name, element);

            Wait.StandardWait();

            JsExecutor.MouseOver(element);

            LoggerSelenium.LogEnd(MethodBase.GetCurrentMethod().Name, element);
        }
예제 #5
0
        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);
        }
예제 #6
0
        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);
        }
예제 #7
0
        public bool DisabledByJs(By locator, int index = 0)
        {
            LoggerSelenium.LogReturn(MethodBase.GetCurrentMethod().Name, locator, index);

            return(JsExecutor.Disabled(locator, index));
        }