Exemplo n.º 1
0
 public static void SelectValue(UITestControl Element, BrowserWindow browser, string value)
 {
     try
     {
         Element.SetProperty("SelectedItem", value);
     }
     catch (Exception e)
     {
         Errormessage = e.Message;
         SaveScreenshots.GetScreenShot(browser);
     }
 }
Exemplo n.º 2
0
        public static void SendKeys(UITestControl Element, String text, BrowserWindow browser)
        {
            try
            {
                Keyboard.SendKeys(Element, text);
                SaveScreenshots.GetScreenShot(browser);
            }

            catch (Exception e)
            {
                Errormessage = e.Message;
                SaveScreenshots.GetScreenShot(browser);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Scrolls the mouse wheel on the specified control the specified number of times.
        /// </summary>
        /// <param name="Element"></param>
        /// <param name="browser"></param>
        /// <param name="value"></param>
        public static void MouseScroll(UITestControl Element, BrowserWindow browser, int value)
        {
            try
            {
                Mouse.MoveScrollWheel(Element, value);
                SaveScreenshots.GetScreenShot(browser);
            }


            catch (Exception e)
            {
                Errormessage = e.Message;
                SaveScreenshots.GetScreenShot(browser);
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// Perform Mouse Click opeartion on Element
        /// </summary>
        /// <param name="Element"></param>
        /// <param name="browser"></param>
        public static void MouseClick(UITestControl Element, BrowserWindow browser)
        {
            try
            {
                Mouse.Click(Element);
                SaveScreenshots.GetScreenShot(browser);
            }


            catch (Exception e)
            {
                Errormessage = e.Message;
                SaveScreenshots.GetScreenShot(browser);
            }
        }