|
73 | 73 | <arguments>
|
74 | 74 | <argument name="buttonGroupPage"/>
|
75 | 75 | <argument name="buttonItemPage"/>
|
76 |
| - <argument name="index" defaultValue="1" type="string"/> |
| 76 | + <argument name="buttonGroupindex" defaultValue="1" type="string"/> |
77 | 77 | <argument name="firstButtonIndex" defaultValue="1" type="string"/>
|
78 | 78 | <argument name="secondButtonIndex" defaultValue="2" type="string"/>
|
79 | 79 | </arguments>
|
80 |
| - <waitForElementVisible selector="{{buttonGroupPage.base(index)}}" stepKey="waitForButtonGroup"/> |
81 |
| - <seeElementInDOM selector="{{buttonGroupPage.appearance(index, PageBuilderAppearancePropertyInline.value)}}" stepKey="seeButtonAppearance"/> |
| 80 | + <waitForElementVisible selector="{{buttonGroupPage.base(buttonGroupindex)}}" stepKey="waitForButtonGroup"/> |
| 81 | + <waitForElementVisible selector="{{buttonGroupPage.appearance(buttonGroupindex, PageBuilderButtonGroupAppearance_Inline.value)}}" stepKey="seeButtonAppearance"/> |
82 | 82 | <waitForElementVisible selector="{{buttonItemPage.base(firstButtonIndex)}}" stepKey="waitForButton1"/>
|
83 |
| - <executeJS function="{{buttonItemPage.xCoordinate(firstButtonIndex)}}" stepKey="xCoordinate1"/> |
84 |
| - <executeJS function="{{buttonItemPage.yCoordinate(firstButtonIndex)}}" stepKey="yCoordinate1"/> |
| 83 | + <executeJS function="return {{buttonItemPage.jsButtonSelector(firstButtonIndex)}}.getBoundingClientRect().x" stepKey="xCoordinate1"/> |
| 84 | + <executeJS function="return {{buttonItemPage.jsButtonSelector(firstButtonIndex)}}.getBoundingClientRect().y" stepKey="yCoordinate1"/> |
85 | 85 | <waitForElementVisible selector="{{buttonItemPage.base(secondButtonIndex)}}" stepKey="waitForButton2"/>
|
86 |
| - <executeJS function="{{buttonItemPage.xCoordinate(secondButtonIndex)}}" stepKey="xCoordinate2"/> |
87 |
| - <executeJS function="{{buttonItemPage.yCoordinate(secondButtonIndex)}}" stepKey="yCoordinate2"/> |
| 86 | + <executeJS function="return {{buttonItemPage.jsButtonSelector(secondButtonIndex)}}.getBoundingClientRect().x" stepKey="xCoordinate2"/> |
| 87 | + <executeJS function="return {{buttonItemPage.jsButtonSelector(secondButtonIndex)}}.getBoundingClientRect().y" stepKey="yCoordinate2"/> |
88 | 88 | <assertGreaterThan stepKey="checkXCoordinates">
|
89 | 89 | <expectedResult type="variable">xCoordinate1</expectedResult>
|
90 | 90 | <actualResult type="variable">xCoordinate2</actualResult>
|
|
98 | 98 | <arguments>
|
99 | 99 | <argument name="buttonGroupPage"/>
|
100 | 100 | <argument name="buttonItemPage"/>
|
101 |
| - <argument name="index" defaultValue="1" type="string"/> |
| 101 | + <argument name="buttonGroupindex" defaultValue="1" type="string"/> |
102 | 102 | <argument name="firstButtonIndex" defaultValue="1" type="string"/>
|
103 | 103 | <argument name="secondButtonIndex" defaultValue="2" type="string"/>
|
104 | 104 | </arguments>
|
105 |
| - <waitForElementVisible selector="{{buttonGroupPage.base(index)}}" stepKey="waitForButtonGroup"/> |
106 |
| - <seeElementInDOM selector="{{buttonGroupPage.appearance(index, PageBuilderAppearancePropertyInline.value)}}" stepKey="seeButtonAppearance"/> |
| 105 | + <waitForElementVisible selector="{{buttonGroupPage.base(buttonGroupindex)}}" stepKey="waitForButtonGroup"/> |
| 106 | + <waitForElementVisible selector="{{buttonGroupPage.appearance(buttonGroupindex, PageBuilderButtonGroupAppearance_Inline.value)}}" stepKey="seeButtonAppearance"/> |
107 | 107 | <waitForElementVisible selector="{{buttonItemPage.base(firstButtonIndex)}}" stepKey="waitForButton1"/>
|
108 |
| - <executeJS function="{{buttonItemPage.xCoordinate(firstButtonIndex)}}" stepKey="xCoordinate1"/> |
109 |
| - <executeJS function="{{buttonItemPage.yCoordinate(firstButtonIndex)}}" stepKey="yCoordinate1"/> |
| 108 | + <executeJS function="return {{buttonItemPage.jsButtonSelector(firstButtonIndex)}}.getBoundingClientRect().x" stepKey="xCoordinate1"/> |
| 109 | + <executeJS function="return {{buttonItemPage.jsButtonSelector(firstButtonIndex)}}.getBoundingClientRect().y" stepKey="yCoordinate1"/> |
110 | 110 | <waitForElementVisible selector="{{buttonItemPage.base(secondButtonIndex)}}" stepKey="waitForButton2"/>
|
111 |
| - <executeJS function="{{buttonItemPage.xCoordinate(secondButtonIndex)}}" stepKey="xCoordinate2"/> |
112 |
| - <executeJS function="{{buttonItemPage.yCoordinate(secondButtonIndex)}}" stepKey="yCoordinate2"/> |
| 111 | + <executeJS function="return {{buttonItemPage.jsButtonSelector(secondButtonIndex)}}.getBoundingClientRect().x" stepKey="xCoordinate2"/> |
| 112 | + <executeJS function="return {{buttonItemPage.jsButtonSelector(secondButtonIndex)}}.getBoundingClientRect().y" stepKey="yCoordinate2"/> |
113 | 113 | <assertGreaterThanOrEqual stepKey="checkXCoordinates">
|
114 | 114 | <expectedResult type="variable">xCoordinate1</expectedResult>
|
115 | 115 | <actualResult type="variable">xCoordinate2</actualResult>
|
|
123 | 123 | <arguments>
|
124 | 124 | <argument name="buttonGroupPage"/>
|
125 | 125 | <argument name="buttonItemPage"/>
|
126 |
| - <argument name="index" defaultValue="1" type="string"/> |
| 126 | + <argument name="buttonGroupindex" defaultValue="1" type="string"/> |
127 | 127 | <argument name="firstButtonIndex" defaultValue="1" type="string"/>
|
128 | 128 | <argument name="secondButtonIndex" defaultValue="2" type="string"/>
|
129 | 129 | </arguments>
|
130 |
| - <waitForElementVisible selector="{{buttonGroupPage.base(index)}}" stepKey="waitForButtonGroup"/> |
131 |
| - <seeElementInDOM selector="{{buttonGroupPage.appearance(index, PageBuilderAppearancePropertyStacked.value)}}" stepKey="seeButtonAppearance"/> |
| 130 | + <waitForElementVisible selector="{{buttonGroupPage.base(buttonGroupindex)}}" stepKey="waitForButtonGroup"/> |
| 131 | + <waitForElementVisible selector="{{buttonGroupPage.appearance(buttonGroupindex, PageBuilderButtonGroupAppearance_Stacked.value)}}" stepKey="seeButtonAppearance"/> |
132 | 132 | <waitForElementVisible selector="{{buttonItemPage.base(firstButtonIndex)}}" stepKey="waitForButton1"/>
|
133 |
| - <executeJS function="{{buttonItemPage.xCoordinate(firstButtonIndex)}}" stepKey="xCoordinate1"/> |
134 |
| - <executeJS function="{{buttonItemPage.yCoordinate(firstButtonIndex)}}" stepKey="yCoordinate1"/> |
| 133 | + <executeJS function="return {{buttonItemPage.jsButtonSelector(firstButtonIndex)}}.getBoundingClientRect().x" stepKey="xCoordinate1"/> |
| 134 | + <executeJS function="return {{buttonItemPage.jsButtonSelector(firstButtonIndex)}}.getBoundingClientRect().y" stepKey="yCoordinate1"/> |
135 | 135 | <waitForElementVisible selector="{{buttonItemPage.base(secondButtonIndex)}}" stepKey="waitForButton2"/>
|
136 |
| - <executeJS function="{{buttonItemPage.xCoordinate(secondButtonIndex)}}" stepKey="xCoordinate2"/> |
137 |
| - <executeJS function="{{buttonItemPage.yCoordinate(secondButtonIndex)}}" stepKey="yCoordinate2"/> |
| 136 | + <executeJS function="return {{buttonItemPage.jsButtonSelector(secondButtonIndex)}}.getBoundingClientRect().x" stepKey="xCoordinate2"/> |
| 137 | + <executeJS function="return {{buttonItemPage.jsButtonSelector(secondButtonIndex)}}.getBoundingClientRect().y" stepKey="yCoordinate2"/> |
138 | 138 | <assertEquals stepKey="checkXCoordinates">
|
139 | 139 | <expectedResult type="variable">xCoordinate1</expectedResult>
|
140 | 140 | <actualResult type="variable">xCoordinate2</actualResult>
|
|
0 commit comments