|
@@ 66-68 (lines=3) @@
|
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
if ($this->shipToDifferentAddress) { |
| 66 |
|
if ($this->webdriver->elementExists($this->theme->getDoNotUseBillingAddressForShipping(), WebDriver::BY_XPATH)) { |
| 67 |
|
$this->webdriver->byXpath($this->theme->getDoNotUseBillingAddressForShipping())->click(); |
| 68 |
|
} |
| 69 |
|
} else { |
| 70 |
|
if ($this->webdriver->elementExists($this->theme->getUseBillingAddressForShipping(), WebDriver::BY_XPATH)) { |
| 71 |
|
$this->webdriver->byXpath($this->theme->getUseBillingAddressForShipping())->click(); |
|
@@ 69-73 (lines=5) @@
|
| 66 |
|
if ($this->webdriver->elementExists($this->theme->getDoNotUseBillingAddressForShipping(), WebDriver::BY_XPATH)) { |
| 67 |
|
$this->webdriver->byXpath($this->theme->getDoNotUseBillingAddressForShipping())->click(); |
| 68 |
|
} |
| 69 |
|
} else { |
| 70 |
|
if ($this->webdriver->elementExists($this->theme->getUseBillingAddressForShipping(), WebDriver::BY_XPATH)) { |
| 71 |
|
$this->webdriver->byXpath($this->theme->getUseBillingAddressForShipping())->click(); |
| 72 |
|
} |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
if (!$this->enterNewAddress && $this->webdriver->elementDisplayed($this->theme->getBillingAddressDropdownXpath(), WebDriver::BY_XPATH)) { |
| 76 |
|
// We're logged in and we have an address. |