コード例 #1
0
        public void Place()
        {//searching for book
            Thread.Sleep(1000);
            Thread.Sleep(5000);
            SearchTab.SendKeys("Scion of Ikshvaku");
            Search.Click();
            Thread.Sleep(5000);
            //buying the book
            Book.Click();
            Thread.Sleep(5000);
            driver.SwitchTo().Frame(frame);
            Thread.Sleep(5000);
            // Switching to innerframe
            Placeorder.Click();
            Thread.Sleep(50000);

            Paynow.Click();
            Thread.Sleep(1000);
            IPlaceTheOrder placeOrder;

            placeOrder = new AddressDetails(driver);  //address details
            placeOrder.Processing();
            placeOrder = new SavaAndContinue(driver); //*/..
            placeOrder.Processing();
        }