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); }
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); }
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); }
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); }
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()); }
public void QuotationPrint() { MouseActionsHelper.HoverAndClick(Driver, Printing, PrintQuotation); }
public void TransferPrint() { MouseActionsHelper.HoverAndClick(Driver, Printing, PrintItinerary); }
public void CouponPrint() { MouseActionsHelper.HoverAndClick(Driver, Printing, PrintCoupon); }