public static void SelectValue(UITestControl Element, BrowserWindow browser, string value) { try { Element.SetProperty("SelectedItem", value); } catch (Exception e) { Errormessage = e.Message; SaveScreenshots.GetScreenShot(browser); } }
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); } }
/// <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); } }
/// <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); } }