public void SelectItem(string locator, string item) { Expand(); WaitUtils.WaitForLoaderToDisapear(driver); string newLocator = locator.Replace("foo", item); HelperUtils.ScrollToElement(driver.FindElement(By.XPath(newLocator)), driver); WaitUtils.WaitForLoaderToDisapear(driver); }
public void SelectCountryItem(string locator, string item) { string newLocator = locator.Replace("foo", item); HelperUtils.ScrollToElement(driver.FindElement(By.XPath(newLocator)), driver); }