File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
dev/tests/functional/lib/Magento/Mtf/Client/Element Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class JquerytreeElement extends Tree
33
33
*
34
34
* @var string
35
35
*/
36
- protected $ pattern = '//li[contains(@class, "jstree") and a[text() = "%s"]] ' ;
36
+ protected $ pattern = '/ul /li[contains(@class, "jstree") and a[text() = "%s"]] ' ;
37
37
38
38
/**
39
39
* Pattern for child open node.
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public function setValue($path)
99
99
{
100
100
$ this ->eventManager ->dispatchEvent (['set_value ' ], [(string )$ this ->getAbsoluteSelector ()]);
101
101
$ elementSelector = $ this ->prepareElementSelector ($ path );
102
- $ elements = $ this ->getElements ($ elementSelector . $ this ->input , Locator::SELECTOR_XPATH );
102
+ $ elements = $ this ->getElements (' . ' . $ elementSelector . $ this ->input , Locator::SELECTOR_XPATH );
103
103
foreach ($ elements as $ element ) {
104
104
$ element ->click ();
105
105
}
You can’t perform that action at this time.
0 commit comments