Beispiel #1
0
        internal static void ByName(string _name)
        {
            int collection = 5;

            for (int i = 0; i <= collection; i++)
            {
                if (VerifyElement.IsElementPresent(By.XPath("//td[contains(., '" + _name + "')]")))
                {
                    ReportHelper.PassLog(_name + " - matching user is found.");
                    break;
                }
                Driver.ClickOn(By.XPath("//a[contains(., 'Next')]"));
            }
        }
Beispiel #2
0
 internal static void PressEnter(By locator)
 {
     element = WaitHelper.ElementToBeClickable(locator);
     element.SendKeys(Keys.Enter);
     ReportHelper.PassLog("Successfully Pressed Enter on: <b>" + locator);
 }
Beispiel #3
0
 internal static void HoldCtrl(By locator, string key)
 {
     element = WaitHelper.ElementToBeClickable(locator);
     element.SendKeys(Keys.Control + key);
     ReportHelper.PassLog("Successfully Pressed Enter on: <b>" + locator);
 }