2017-04-10

Extension to IWebElement

The extension to IWebElement

 public static class Program
    {
        //Extention to IWebElement, Clear Textbox before Input
        public static void EnterValue(this IWebElement element, string input)
        {
            element.Clear();
            element.SendKeys(input);

        }


        //Extention to IWebElement, Wait for 0.5s After Every Click
        public static void ClickAndWait(this IWebElement element)
        {
            element.Click();
            Thread.Sleep(500);

        }

No comments:

Post a Comment

Setup VNC on Ubuntu 20.04

  sudo apt update sudo apt install xfce4 xfce4-goodies sudo apt install tigervnc-standalone-server sudo apt install tightvncserver vncserver...