Beispiel #1
0
 public AutoFillDto()
 {
     tab1 = new Tab1();
     tab2 = new Tab2();
     tab3 = new Tab3();
     tab4 = new Tab4();
 }
Beispiel #2
0
        private static void FillTaxPayerInfo(IWebDriver webDriver, Tab1 tab1)
        {
            var taxApplicable = webDriver.FindElement(By.Id(tab1.TaxApplicable));

            taxApplicable.Click();

            var resident = "";

            if (tab1.StatusOfPayee)
            {
                resident = "Indian";
            }
            else
            {
                resident = "NRI";
            }
            var statusOfPayer = webDriver.FindElement(By.Id(resident));

            statusOfPayer.Click();

            var pan = webDriver.FindElement(By.Id("PAN_purchaser"));

            pan.SendKeys(tab1.PanOfPayer);
            var confirmPan = webDriver.FindElement(By.Id("ConfirmTransferee"));

            confirmPan.SendKeys(tab1.PanOfPayer);
            var sellerPan = webDriver.FindElement(By.Id("PAN_seller"));

            sellerPan.SendKeys(tab1.PanOfTransferor);
            var confirmSellerPan = webDriver.FindElement(By.Id("ConfirmTransferers"));

            confirmSellerPan.SendKeys(tab1.PanOfTransferor);
            WaitForReady(webDriver);

            webDriver.FindElement(By.XPath("//a[@href='#next']")).Click();
        }