File tree Expand file tree Collapse file tree 2 files changed +1
-22
lines changed
dev/tests/functional/lib/Magento/Mtf/Client/Element Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Original file line number Diff line number Diff line change 13
13
*/
14
14
class OptgroupselectElement extends SelectElement
15
15
{
16
- /**
17
- * Option locator.
18
- *
19
- * @var string
20
- */
21
- protected $ optionByIndex = './/option ' ;
22
-
23
16
/**
24
17
* Option group selector.
25
18
*
@@ -44,14 +37,7 @@ public function getValue()
44
37
{
45
38
$ this ->eventManager ->dispatchEvent (['get_value ' ], [(string )$ this ->getAbsoluteSelector ()]);
46
39
47
- $ selectedLabel = '' ;
48
- $ labels = $ this ->getElements ($ this ->optionByIndex , Locator::SELECTOR_XPATH );
49
- foreach ($ labels as $ label ) {
50
- if ($ label ->isSelected ()) {
51
- $ selectedLabel = $ label ->getText ();
52
- break ;
53
- }
54
- }
40
+ $ selectedLabel = parent ::getValue ();
55
41
if ($ selectedLabel == '' ) {
56
42
throw new \Exception ('Selected value has not been found in optgroup select. ' );
57
43
}
Original file line number Diff line number Diff line change 13
13
*/
14
14
class SelectstoreElement extends SelectElement
15
15
{
16
- /**
17
- * Option locator
18
- *
19
- * @var string
20
- */
21
- protected $ optionByIndex = './/optgroup/option[%d] ' ;
22
-
23
16
/**
24
17
* Store option group selector.
25
18
*
You can’t perform that action at this time.
0 commit comments