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)); }
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)); }
public BookingForthStepPage ContinueAndCustomize(BasePage bp) { WebElementHelper.MoveToElementAndClick(Driver, By.XPath(continueAndCustomizeButtonXPath)); return(new BookingForthStepPage(bp)); }
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)); }