public void BannersSample()
        {
            WebDriverParams = "{\"Driver\":\"Firefox\"}";
            GoToUrl("http://www.lastminutetravel.com");

            WebDriver.BannersListener(By.XPath("//*[@id='optimizely_add_close']"));

            var radioButton = FindElement(By.XPath("//*[@id='TGS_sb_pFHRImg']"));

            radioButton.Click();

            Assert.AreEqual(true, radioButton.Selected);

            FindElement(By.XPath("//*[@id='TGS_pfhr_txtFrom']")).SendKeys("New York");
            FindElement(By.XPath("//*[@id='TGS_pfhr_txtFrom_Combo']/div[1]/span/span[2]")).Click();

            FindElement(By.XPath("//*[@id='TGS_pfhr_txtTo']")).SendKeys("Miami");
            FindElement(By.XPath("//*[@id='TGS_pfhr_txtTo_Combo']/div[1]/span/span[2]")).Click();

            var textBox = FindElement(By.XPath("//*[@id='TGS_pfhr_departDate']"));

            textBox.Clear();
            textBox.SendKeys(DateTime.Now.AddDays(30).ToString("MM/dd/yyyy"));

            textBox = FindElement(By.XPath("//*[@id='TGS_pfhr_returnDate']"));
            textBox.Clear();
            textBox.SendKeys(DateTime.Now.AddDays(33).ToString("MM/dd/yyyy"));

            FindElement(By.XPath("//*[@id='TGS_pfhr_departTime']")).ComboBox().SelectByIndex(4);
            FindElement(By.XPath("//*[@id='TGS_pfhr_returnTime']")).ComboBox().SelectByValue("0;6");

            var checkBox = FindElement(By.XPath("//*[@id='TGS_pfhr_cbNonStop']"));

            checkBox.Click();
            Assert.AreEqual(true, checkBox.Selected);

            FindElement(By.XPath("//*[@id='TGS_pfhr_butSearch']")).Click();

            Assert.AreNotEqual(0, FindElements(By.XPath("//*[@id='ext-comp-1002']/div[@style='width:100%']")).Count);

            WebDriver.Dispose();
        }
        public void BannersSample()
        {
            WebDriverParams = "{\"Driver\":\"Chrome\"}";
            GoToUrl("http://www.lastminutetravel.com/flights");

            //BANNERS LISTENER - for Xpath take Xpath for banner
            WebDriver.BannersListener(By.XPath(""), 1000);

            var radioButton = FindElement(By.XPath("//*[@id='flights']/div/div[4]/div[3]"));

            radioButton.Click();
            var radio2 = FindElement(By.XPath("//*[@id='radio2']"));

            Assert.AreEqual(true, radio2.Selected);



            //auto-complete text-box
            //from
            FindElement(By.XPath("//*[@id=\"autosuggest-flightsFrom\"]")).SendKeys("N");;
            //DEALING WITH AUTO-FILLING
            FindElement(By.XPath("//*[@id='react-autowhatever-1-section-0-item-0']/div/span[2]")).Click();

            //to
            FindElement(By.XPath("//*[@id='autosuggest-flightsTo']")).SendKeys("M");
            FindElement(By.XPath("//*[@id='react-autowhatever-1-section-0-item-0']/div/span[2]")).Click();

            FindElement(By.XPath("//*[@id='flights']/div/div[4]/div[1]/select")).ComboBox().SelectByIndex(1);


            FindElement(By.XPath("//*[@id='findFlights']")).Click();

            //
            Assert.AreNotEqual(0, FindElements(By.XPath("//*[@id='SBInnerContent']")));

            WebDriver.Dispose();
        }