File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed
dev/tests/functional/lib/Magento/Mtf/Client/Element Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -63,17 +63,12 @@ class GlobalsearchElement extends SimpleElement
63
63
public function setValue ($ value )
64
64
{
65
65
$ this ->eventManager ->dispatchEvent (['set_value ' ], [__METHOD__ , $ this ->getAbsoluteSelector ()]);
66
-
67
66
$ this ->waitInitElement ();
68
-
69
67
if (!$ this ->find ($ this ->searchInput )->isVisible ()) {
70
68
$ this ->find ($ this ->searchIcon )->click ();
71
69
}
72
- // $this->selectWindow();
73
70
$ this ->clear ();
74
71
$ this ->find ($ this ->searchInput )->setValue ($ value );
75
- // $this->selectWindow();
76
-
77
72
$ this ->waitResult ();
78
73
}
79
74
@@ -90,16 +85,6 @@ protected function clear()
90
85
}
91
86
}
92
87
93
- /**
94
- * Select to last window.
95
- *
96
- * @return void
97
- */
98
- protected function selectWindow ()
99
- {
100
- $ this ->driver ->selectWindow ();
101
- }
102
-
103
88
/**
104
89
* Wait init search suggest container.
105
90
*
@@ -130,12 +115,7 @@ public function waitResult()
130
115
131
116
$ this ->driver ->waitUntil (
132
117
function () use ($ browser , $ selector ) {
133
- if ($ browser ->find ($ selector )->isVisible ()) {
134
- return true ;
135
- } else {
136
- // $browser->selectWindow();
137
- return null ;
138
- }
118
+ return $ browser ->find ($ selector )->isVisible () ? true : null ;
139
119
}
140
120
);
141
121
}
You can’t perform that action at this time.
0 commit comments