| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function save() |
||
| 31 | { |
||
| 32 | |||
| 33 | $this->webDriver->executeScript('window.scrollTo(0, 0);'); |
||
| 34 | |||
| 35 | $this->webDriver->wait()->until(ExpectedCondition::elementExists($this->adminThemeConfiguration->getSystemConfigurationSaveButtonXpath(), AbstractTestCase::BY_XPATH)); |
||
| 36 | $this->testCase->assertElementDisplayed($this->adminThemeConfiguration->getSystemConfigurationSaveButtonXpath(), AbstractTestCase::BY_XPATH); |
||
| 37 | $element = $this->webDriver->byXpath($this->adminThemeConfiguration->getSystemConfigurationSaveButtonXpath()); |
||
| 38 | $element->click(); |
||
| 39 | $this->webDriver->wait()->until(ExpectedCondition::elementRemoved($element)); |
||
| 40 | $this->testCase->assertElementDisplayed($this->adminThemeConfiguration->getSystemConfigSaveSuccessfulXpath(), WebDriver::BY_XPATH); |
||
| 41 | } |
||
| 42 | |||
| 48 | } |