Ejemplo n.º 1
0
        } /** * Browser to my account page. **/

        public void clickOnMyAccountLink_US_UK()
        {
            if (driver.IsElementPresent("link=Sign Out"))
            {
                driver.Click("link=Sign Out");
            }
            quality.Highlight("link=Sign In");
            driver.Click("link=Sign In");
            //accountLink_US_UK = driver.UnderlyingWebDriver.FindElement(By.LinkText("Sign In"));
            //accountLink_US_UK.Click();

            /*
             * if (browser.Equals("internetexplorer"))
             * {
             *  driver.Open("javascript:document.getElementById('overridelink').click()");
             * }
             */
        }
Ejemplo n.º 2
0
 public void clickCreateNewAccountLink()
 {
     //driver.Refresh();
     //driver.SelectFrame("gauth-widget-frame");
     driver.WaitForPageToLoad("30000");
     //		this.waitForLinkToAppear("login-state-default");
     driver.Click("id=lnkCreateAccount");
     //		driver.switchTo().window(driver.getWindowHandle());
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Check to see if a link is present and click it
        /// </summary>
        /// <param name="linkname">Id of the link</param>
        public void Click(string linkname)
        {
            counter++;

            try
            {
                if (IsElementPresent(linkname))
                {
                    if (ElementVisible(linkname))
                    {
                        selenium.Click(linkname);
                        test.passedcheck++;
                    }
                    else
                    {
                        test.failedcheck++;
                        ErrorReport(linkname, CheckType.Link);
                    }
                }
                else
                {
                    test.failedcheck++;
                    ErrorReport(linkname, CheckType.Link);
                }
            }
            catch (SeleniumException)
            {
                test.failedcheck++;
                ErrorReport(linkname, CheckType.Link);
            }

            catch// (Exception e)
            {
                test.failedcheck++;
                ErrorReport(linkname, CheckType.Link);
            }
        }
Ejemplo n.º 4
0
 public void clickAddAddressBtn_US_UK()
 {
     //addAddressBtn_US_UK = driver.UnderlyingWebDriver.FindElement(By.LinkText("Add Addresses"));
     //addAddressBtn_US_UK.Click();
     driver.Click("link=Add Addresses");
 }