Beispiel #1
0
        public void  OpenTheQuoteByIdAndReachTheQuotationPage()
        {
            NavigationHelper.NavigateToUrl(ObjectRepository.Config.GetWebSite());
            DropDownListHelper.SelectElementByText(By.Id("cmbCompanies"), "Vered Hasharon");
            LoginPagePOM    veredLog    = new LoginPagePOM(ObjectRepository.Driver);
            WelcomToTcoPage veredWelcom = veredLog.ClickLogin(ObjectRepository.Config.GetVeredUser(), ObjectRepository.Config.GetVeredPassword());
            QuotationsList  verdquote   = veredWelcom.ClickIncoming();

            //  var mainWindow = BrowserHelper.GettheParentPage();

            verdquote.ticTcheckBoxAll();
            verdquote.clickShowButton();

            // make sure that you are in the right page -->assert the title of the page

            Assert.AreEqual("QUOTATION / GROUPS LIST", verdquote.PageTitle, "the titles are not equals");
            var HoverAnElement = ObjectRepository.Driver.FindElement(By.XPath("//td[@id='ctl00_ContentPlaceHolder1_mnuTopn0']//a[contains(text(),'Sheets')]"));
            var ElementClick   = ObjectRepository.Driver.FindElement(By.XPath("//a[contains(text(),'Open Calc.sheet/Group by number')]"));

            MouseActionsHelper.HoverAndClick(ObjectRepository.Driver, HoverAnElement, ElementClick);

            //switch to the new frame by invoking   OpenExistingQuote Method
            GenericHelper.OpenExistingQuote(TestContext.DataRow["QuotationId"].ToString());
            Thread.Sleep(2000);
            //switch to the new window
            BrowserHelper.SwitchToWindow(1);
        }
Beispiel #2
0
        private void AddGroupMembers()
        {
            QuotationSheet myQuote = new QuotationSheet(ObjectRepository.Driver);
            var            AddMem  = myQuote.QuotationSheetTabs.AddGroupMember;

            MouseActionsHelper.HoverAndClick(ObjectRepository.Driver, myQuote.QuotationSheetTabs.Tab_Clients, myQuote.QuotationSheetTabs.AddGroupMember);
        }
Beispiel #3
0
        private void ActionsOntheQuotePage()
        {
            QuotationSheet Quote    = new QuotationSheet(ObjectRepository.Driver);
            var            element1 = Quote.TopMenu.DataEntry;
            var            element2 = Quote.TopMenu.ParkingFees;

            MouseActionsHelper.hoverAnElement(element1);

            Thread.Sleep(1500);
            MouseActionsHelper.HoverAndClick(ObjectRepository.Driver, element1, element2);
            Thread.Sleep(2000);
        }
Beispiel #4
0
        public static void SelectIncoming()
        {
            LoginFromConfigFile();
            LoginPagePOM   LogMe     = new LoginPagePOM(ObjectRepository.Driver);
            QuotationsList quoteList = LogMe.WelcomToTco.ClickIncoming();

            //Assert that you are in the right page
            Assert.AreEqual("QUOTATION / GROUPS LIST", quoteList.PageTitle, "the titles are not equals");
            var HoverAnElement = ObjectRepository.Driver.FindElement(By.XPath("//td[@id='ctl00_ContentPlaceHolder1_mnuTopn0']//a[contains(text(),'Sheets')]"));
            var ElementClick   = ObjectRepository.Driver.FindElement(By.XPath("//a[contains(text(),'New Calc.sheet')]"));

            MouseActionsHelper.HoverAndClick(ObjectRepository.Driver, HoverAnElement, ElementClick);
        }
Beispiel #5
0
        public static void SelectIncomingToursAndOpenById()
        {
            LoginFromConfigFile();
            LoginPagePOM   LogMe     = new LoginPagePOM(ObjectRepository.Driver);
            QuotationsList quoteList = LogMe.WelcomToTco.ClickIncoming();
            string         FilePath  = @"E:\Users\Bassam\Documents\Training\DataDriven\ExcelTestData\TcoData.xlsx";

            //Assert that you are in the right page
            Assert.AreEqual("QUOTATION / GROUPS LIST", quoteList.PageTitle, "the titles are not equals");
            var HoverAnElement = ObjectRepository.Driver.FindElement(By.XPath("//td[@id='ctl00_ContentPlaceHolder1_mnuTopn0']//a[contains(text(),'Sheets')]"));
            var ElementClick   = ObjectRepository.Driver.FindElement(By.XPath("//a[contains(text(),'Open Calc.sheet/Group by number')]"));

            MouseActionsHelper.HoverAndClick(ObjectRepository.Driver, HoverAnElement, ElementClick);

            //switch to the new frame by invoking   OpenExistingQuote Method
            GenericHelper.OpenExistingQuote(ExcelReaderHelper.GetCelldata(FilePath, "Quotations", 1, 0).ToString());
        }
Beispiel #6
0
 public void QuotationPrint()
 {
     MouseActionsHelper.HoverAndClick(Driver, Printing, PrintQuotation);
 }
Beispiel #7
0
 public void TransferPrint()
 {
     MouseActionsHelper.HoverAndClick(Driver, Printing, PrintItinerary);
 }
Beispiel #8
0
 public void CouponPrint()
 {
     MouseActionsHelper.HoverAndClick(Driver, Printing, PrintCoupon);
 }