File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
dev/tests/functional/lib/Mtf/Client/Element Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,9 @@ public function setValue($value)
59
59
60
60
$ this ->clear ();
61
61
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 ]);
64
65
$ this ->waitResult ();
65
66
$ searchedItem = $ this ->find (sprintf ($ this ->resultItem , $ value ), Locator::SELECTOR_XPATH );
66
67
if ($ searchedItem ->isVisible ()) {
@@ -90,7 +91,7 @@ protected function clear()
90
91
*/
91
92
public function waitResult ()
92
93
{
93
- $ browser = clone $ this ;
94
+ $ browser = $ this ;
94
95
$ selector = $ this ->suggestStateLoader ;
95
96
$ browser ->waitUntil (
96
97
function () use ($ browser , $ selector ) {
You can’t perform that action at this time.
0 commit comments