Esempio n. 1
0
        //added for demo to switch into frame
        public void framehandling()
        {
            //frame window button
            // IWebElement selectDD1 = driver.FindElement(By.Id("menulist2"));
            //SelectElement dd1 = new SelectElement(selectDD1);
            //dd1.SelectByText("Boost");3d
            driver.SwitchTo().Frame("frame1");
            IWebElement   selectDDframe = driver.FindElement(By.Id("menulist2"));
            SelectElement ddframe       = new SelectElement(selectDDframe);

            Assert.AreEqual("Coffee", ddframe.SelectedOption.Text);
            BrowserHelpers.screenshots("Before select Boost");
            ddframe.SelectByText("Boost");
            BrowserHelpers.screenshots("After select Boost");
            //parent window button
            driver.SwitchTo().DefaultContent();
            IWebElement   selectDD = driver.FindElement(By.Id("menulist"));
            SelectElement dd       = new SelectElement(selectDD);

            dd.SelectByText("Pongal");
        }
 public void TC010_AutoITDemo()
 {
     lp.GotoPage(URL);
     BrowserHelpers.screenshots("DemoHTMLPage");
     lp.callingAutoITExe();
 }