Skip to content

Commit d9b71a2

Browse files
committed
MAGETWO-32081: MTF Alternative Web Driver pull request preparation
1 parent e2c43ca commit d9b71a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dev/tests/functional/lib/Mtf/Client/Element/SuggestElement.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ public function setValue($value)
5959

6060
$this->clear();
6161
foreach (str_split($value) as $symbol) {
62-
$this->find($this->suggest)->click();
63-
$this->keys([$symbol]);
62+
$input = $this->find($this->suggest);
63+
$input->click();
64+
$input->keys([$symbol]);
6465
$this->waitResult();
6566
$searchedItem = $this->find(sprintf($this->resultItem, $value), Locator::SELECTOR_XPATH);
6667
if ($searchedItem->isVisible()) {
@@ -90,7 +91,7 @@ protected function clear()
9091
*/
9192
public function waitResult()
9293
{
93-
$browser = clone $this;
94+
$browser = $this;
9495
$selector = $this->suggestStateLoader;
9596
$browser->waitUntil(
9697
function () use ($browser, $selector) {

0 commit comments

Comments
 (0)