File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed
dev/tests/functional/lib/Magento/Mtf/Client/Element Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change 14
14
*/
15
15
class GlobalsearchElement extends SimpleElement
16
16
{
17
- /**
18
- * "Backspace" key code.
19
- */
20
- const BACKSPACE = "\xEE\x80\x83" ;
21
-
22
17
/**
23
18
* Search icon selector.
24
19
*
@@ -67,24 +62,10 @@ public function setValue($value)
67
62
if (!$ this ->find ($ this ->searchInput )->isVisible ()) {
68
63
$ this ->find ($ this ->searchIcon )->click ();
69
64
}
70
- $ this ->clear ();
71
- $ this ->find ($ this ->searchInput )->setValue ($ value );
65
+ $ this ->find ($ this ->searchInput )->keys (str_split ($ value ));
72
66
$ this ->waitResult ();
73
67
}
74
68
75
- /**
76
- * Clear value of element.
77
- *
78
- * @return void
79
- */
80
- protected function clear ()
81
- {
82
- $ element = $ this ->find ($ this ->searchInput );
83
- while ('' != $ element ->getValue ()) {
84
- $ element ->setValue ([self ::BACKSPACE ]);
85
- }
86
- }
87
-
88
69
/**
89
70
* Wait init search suggest container.
90
71
*
You can’t perform that action at this time.
0 commit comments