Exemple #1
0
 public PaymentStepPage NextStep(BasePage bp)
 {
     WebElementHelper.MoveToElementAndClick(Driver, By.XPath(seatsCheckBoxXPath));
     Thread.Sleep(1000);
     WebElementHelper.MoveToElementAndClick(Driver, By.XPath(bagsCheckBoxXPath));
     Thread.Sleep(1000);
     WebElementHelper.MoveToElementAndClick(Driver, By.XPath(flexCheckBoxXPath));
     //Thread.Sleep(1000);
     WebElementHelper.MoveToElementAndClick(Driver, By.XPath(insuranceCheckBoxXPath));
     WebElementHelper.MoveToElementAndClick(Driver, By.XPath(checkInCheckBoxXPath));
     WebElementHelper.MoveToElementAndClick(Driver, By.XPath(nextStepButtonXPath));
     return(new PaymentStepPage(bp));
 }
Exemple #2
0
        public PaymentStepPage NextStep(BasePage bp)
        {
            //page automatically scrols. i found solution to disable js on page, but it does not work

            WebElementHelper.MoveToElementAndClick(Driver, By.XPath(seatsCheckBoxXPath));
            Thread.Sleep(1000);
            WebElementHelper.MoveToElementAndClick(Driver, By.XPath(bagsCheckBoxXPath));
            Thread.Sleep(1000);
            WebElementHelper.MoveToElementAndClick(Driver, By.XPath(flexCheckBoxXPath));
            //Thread.Sleep(1000);
            WebElementHelper.MoveToElementAndClick(Driver, By.XPath(insuranceCheckBoxXPath));
            //Thread.Sleep(1000);
            WebElementHelper.MoveToElementAndClick(Driver, By.XPath(checkInCheckBoxXPath));
            //Thread.Sleep(1000);
            WebElementHelper.MoveToElementAndClick(Driver, By.XPath(nextStepButtonXPath));
            return(new PaymentStepPage(bp));
        }
Exemple #3
0
 public BookingForthStepPage ContinueAndCustomize(BasePage bp)
 {
     WebElementHelper.MoveToElementAndClick(Driver, By.XPath(continueAndCustomizeButtonXPath));
     return(new BookingForthStepPage(bp));
 }
Exemple #4
0
 public BookingThirdStepPage NextStep(BasePage bp)
 {
     WebElementHelper.MoveToElementAndClick(Driver, By.XPath(conditionsOfCarriageXPath));
     WebElementHelper.MoveToElementAndClick(Driver, By.XPath(nextStepButtonXPath));
     return(new BookingThirdStepPage(bp));
 }
 public BookingSecondStepPage NextStep(BasePage bp)
 {
     WebElementHelper.MoveToElementAndClick(Driver, By.XPath(nextStepButtonXPath));
     return(new BookingSecondStepPage(bp));
 }