Esempio n. 1
0
        public MainWorkflowPage ClickSubmit_Button(WindowsHandlerData data)
        {
            this.WebDriverWrapper.FindAndClick(submitButton, How.XPath);

            this.WaitForWidowClosed(data.CreateQuotePopUpPageId);
            this.SwitchToWindow(this.WebDriverWrapper.WebDriver.WindowHandles.Last());
            return(new MainWorkflowPage(this));
        }
        public BrokersTabPage ClickFirstLink_Button(WindowsHandlerData data)
        {
            this.WebDriverWrapper.FindAndClick(firstLinkAtListButton, How.XPath);

            this.WaitForWidowClosed(data.SelectBrokerToAddToPolicyPopUpPageId);
            this.SwitchToWindow(data.MainFlowPageId);

            return(new BrokersTabPage(this));
        }
        public AssociatedPartiesTabPage ClickSave_Button(WindowsHandlerData data)
        {
            this.WebDriverWrapper.FindAndClick(saveButton, How.XPath);

            this.WaitForWidowClosed(data.AddEditAssociatedPartyPopUpPageId);
            this.WaitForWidowClosed(data.SearchPartyPageId);

            this.SwitchToWindow(data.MainFlowPageId);

            return(new AssociatedPartiesTabPage(this));
        }
        public AddDetailsToExistingAssociatedPartyPage ClickFirstPartyLink_Button(WindowsHandlerData data)
        {
            data.GetNumberOfCurrentlyOpenedWindows(this);

            this.WebDriverWrapper.FindAndClick(firstLinkButton, How.XPath);

            data.AddDetailsToExistAssociatedPartyPopUpPageId = data.WaitAndGetIdForNewlyOpenedWindow(data, this);

            this.SwitchToWindow(data.AddDetailsToExistAssociatedPartyPopUpPageId);

            return(new AddDetailsToExistingAssociatedPartyPage(this));
        }
Esempio n. 5
0
        public BindQuoteConfirmationPopUpPage ClickBindQuote_Button(WindowsHandlerData data)
        {
            data.GetNumberOfCurrentlyOpenedWindows(this);

            this.WebDriverWrapper.Wait.Until(x => this.WebDriverWrapper.FindElementsByXPath(bindQuoteButton).Any());

            this.WebDriverWrapper.FindAndClick(bindQuoteButton, How.XPath);
            data.BindQuotePopUpPageId = data.WaitAndGetIdForNewlyOpenedWindow(data, this);

            Thread.Sleep(1000);

            this.SwitchToWindow(data.BindQuotePopUpPageId);

            return(new BindQuoteConfirmationPopUpPage(this));
        }
        public AddAssureMemberPage ClickSelectMember_Hyperlink(WindowsHandlerData data)
        {
            data.GetNumberOfCurrentlyOpenedWindows(this);

            this.WebDriverWrapper.FindAndClick(membersSelectHyperlink, How.XPath);

            var winHan = this.WebDriverWrapper.WebDriver.WindowHandles;

            data.AddAssuredMemberPageId = data.WaitAndGetIdForNewlyOpenedWindow(data, this);

            this.SwitchToWindow(data.AddAssuredMemberPageId);

            Thread.Sleep(500);

            return(new AddAssureMemberPage(this));
        }