//To Do: Feed URL's public HomePage(WebDriverBackedSelenium webdriver, ParentTest test) { driver = webdriver; usStoreURL = test.baseURL; ukStoreURL = test.baseURL; //prod doesn't have a separate address for foreign languages beStoreURL = test.baseURL; digitalStoreURL = test.baseURL; //prod doesn't have a separate address for foreign languages dutchCategories = new string[3]; frenchCategories = new string[3]; driver.Open(usStoreURL); quality = new QualityCheck(test); Thread.Sleep(2000); searchInputText = driver.UnderlyingWebDriver.FindElement(By.Id("searchbox")); //By.XPath("//div[@id='search']//input[@name='keyWords']")); searchButton = driver.UnderlyingWebDriver.FindElement(By.ClassName("searchbutton")); //By.XPath("//div[@id='search']//input[@value='search']")); wishlistLink = driver.UnderlyingWebDriver.FindElement(By.LinkText("my cart")); //wishlistLink = driver.UnderlyingWebDriver.FindElement(By.LinkText("wish list")); //categoryDiv = driver.UnderlyingWebDriver.FindElement(By.Id("wrapper")); categoryDiv = driver.UnderlyingWebDriver.FindElement(By.Id("checkin")); //Investigate reworking URL's /* * properties = SeleniumPropertyManager.getInstance(); * usStoreURL = properties.getProperty("selenium.session.baseurl.us"); * ukStoreURL = properties.getProperty("selenium.session.baseurl.uk"); * beStoreURL = properties.getProperty("selenium.session.baseurl.be"); * digitalStoreURL = properties.getProperty("selenium.session.baseurl.digital"); */ }
virtual public void SetupTest() { path = ConfigurationManager.AppSettings["ContentPath"].ToString(); driver = new FirefoxDriver(); selenium = new WebDriverBackedSelenium(driver, ConfigurationManager.AppSettings["_3DRURL"]); verificationErrors = new StringBuilder(); selenium.Start(); selenium.Open("/Default.aspx"); selenium.WindowFocus(); isSeleniumRunning = true; }
public void openPage(String url) { driver.Open(url); }
public void openUSHomePage() { driver.Open(usStoreURL); }