From d4075a72991a2f9d502f43dbf678b324b99b3368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Mon, 29 May 2017 11:06:37 +0200 Subject: [PATCH] EZEE-1487: change visibility of waitWhileLoading (#868) --- Features/Context/PlatformUI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Features/Context/PlatformUI.php b/Features/Context/PlatformUI.php index 9800a66fc..cfd9fac13 100644 --- a/Features/Context/PlatformUI.php +++ b/Features/Context/PlatformUI.php @@ -171,7 +171,7 @@ protected function sleep() * * @param $selector selector to match, */ - protected function waitWhileLoading($selector = self::LOADING_SELECTOR, $onlyVisible = true) + public function waitWhileLoading($selector = self::LOADING_SELECTOR, $onlyVisible = true) { $maxTime = time() + self::MAX_WAIT_TIMEOUT; do { @@ -319,7 +319,7 @@ protected function getElementByText($text, $selector, $textSelector = null, $bas * @param string $textSelector Extra CSS selector for text of the element * @param string $baseElement Element in which the search is based */ - protected function clickElementByText($text, $selector, $textSelector = null, $baseElement = null, $index = 1) + protected function clickElementByText($text, $selector, $textSelector = null, $baseElement = null) { $element = $this->getElementByText($text, $selector, $textSelector, $baseElement); if ($element && $element->isVisible()) {