public function nextAction() { $this->webdriver->wait()->until(ExpectedCondition::elementExists($this->theme->getShippingMethodContinueButtonXpath(), WebDriver::BY_XPATH)); $this->webdriver->wait()->until(ExpectedCondition::visibilityOf($this->webdriver->byXpath($this->theme->getShippingMethodContinueButtonXpath()))); $this->webdriver->byXpath($this->theme->getShippingMethodContinueButtonXpath())->click(); $this->webdriver->wait()->until(WebDriverExpectedCondition::not(WebDriverExpectedCondition::visibilityOf($this->webdriver->byXpath($this->theme->getShippingMethodContinueCompletedXpath())))); return true; }
public function nextAction() { if ($this->bypassNextStep) { return true; } $this->testCase->byXpath($this->theme->getShippingContinueButtonXpath())->click(); $this->webdriver->wait()->until(WebDriverExpectedCondition::not(WebDriverExpectedCondition::visibilityOf($this->webdriver->byXpath($this->theme->getShippingContinueCompletedXpath())))); return true; }
public function nextAction() { $this->webdriver->byXpath($this->theme->getPaymentMethodContinueButtonXpath())->click(); try { $this->webdriver->wait()->until(WebDriverExpectedCondition::not(WebDriverExpectedCondition::visibilityOf($this->webdriver->byXpath($this->theme->getPaymentMethodContinueCompleteXpath())))); } catch (StaleElementReferenceException $e) { // it is possible that the page rendered with unexpected timing which may lead to a harmless StaleElementReferenceException } return true; }
public function nextAction() { $this->webdriver->byXpath($this->theme->getPaymentMethodContinueButtonXpath())->click(); $this->webdriver->wait()->until(WebDriverExpectedCondition::not(WebDriverExpectedCondition::visibilityOf($this->webdriver->byXpath($this->theme->getPaymentMethodContinueCompleteXpath())))); return true; }