| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function closeNotification(string $text): void |
||
| 10 | { |
||
| 11 | /** @var WebDriver $I */ |
||
| 12 | $I = $this->getModule('WebDriver'); |
||
| 13 | $I->waitForElement('.ui-pnotify', 180); |
||
| 14 | $I->see($text, '.ui-pnotify'); |
||
| 15 | $I->moveMouseOver(['css' => '.ui-pnotify']); |
||
| 16 | $I->wait(1); |
||
| 17 | $I->click('//span[@title="Close"]'); |
||
| 18 | } |
||
| 19 | } |
||
| 20 |