@@ -194,7 +194,7 @@ public UIValidatorBase isNotOverlapping(List<WebElement> elements) {
194194 */
195195 @ Override
196196 public UIValidatorBase isLeftAlignedWith (WebElement element , String readableName ) {
197- rootElement .validateLeftAlignedWith (asElement (element , readableName ), errors );
197+ rootElement .validateLeftAlignedWith (asElement (element , readableName ), getContext (), errors );
198198 drawLeftOffsetLine ();
199199 return this ;
200200 }
@@ -208,7 +208,7 @@ public UIValidatorBase isLeftAlignedWith(WebElement element, String readableName
208208 @ Override
209209 public UIValidatorBase isLeftAlignedWith (List <WebElement > webElements ) {
210210 for (UIElement element : asElements (webElements )) {
211- rootElement .validateLeftAlignedWith (element , errors );
211+ rootElement .validateLeftAlignedWith (element , getContext (), errors );
212212 }
213213 drawLeftOffsetLine ();
214214 return this ;
@@ -223,7 +223,7 @@ public UIValidatorBase isLeftAlignedWith(List<WebElement> webElements) {
223223 */
224224 @ Override
225225 public UIValidatorBase isRightAlignedWith (WebElement element , String readableName ) {
226- rootElement .validateRightAlignedWith (asElement (element , readableName ), errors );
226+ rootElement .validateRightAlignedWith (asElement (element , readableName ), getContext (), errors );
227227 drawRightOffsetLine ();
228228 return this ;
229229 }
@@ -237,7 +237,7 @@ public UIValidatorBase isRightAlignedWith(WebElement element, String readableNam
237237 @ Override
238238 public UIValidatorBase isRightAlignedWith (List <WebElement > elements ) {
239239 for (WebElement element : elements ) {
240- rootElement .validateRightAlignedWith (asElement (element ), errors );
240+ rootElement .validateRightAlignedWith (asElement (element ), getContext (), errors );
241241 }
242242 drawRightOffsetLine ();
243243 return this ;
@@ -252,7 +252,7 @@ public UIValidatorBase isRightAlignedWith(List<WebElement> elements) {
252252 */
253253 @ Override
254254 public UIValidatorBase isTopAlignedWith (WebElement element , String readableName ) {
255- rootElement .validateTopAlignedWith (asElement (element , readableName ), errors );
255+ rootElement .validateTopAlignedWith (asElement (element , readableName ), getContext (), errors );
256256 drawTopOffsetLine ();
257257 return this ;
258258 }
@@ -266,7 +266,7 @@ public UIValidatorBase isTopAlignedWith(WebElement element, String readableName)
266266 @ Override
267267 public UIValidatorBase isTopAlignedWith (List <WebElement > elements ) {
268268 for (WebElement element : elements ) {
269- rootElement .validateTopAlignedWith (asElement (element ), errors );
269+ rootElement .validateTopAlignedWith (asElement (element ), getContext (), errors );
270270 }
271271 drawTopOffsetLine ();
272272 return this ;
@@ -281,7 +281,7 @@ public UIValidatorBase isTopAlignedWith(List<WebElement> elements) {
281281 */
282282 @ Override
283283 public UIValidatorBase isBottomAlignedWith (WebElement element , String readableName ) {
284- rootElement .validateBottomAlignedWith (asElement (element , readableName ), errors );
284+ rootElement .validateBottomAlignedWith (asElement (element , readableName ), getContext (), errors );
285285 drawBottomOffsetLine ();
286286 return this ;
287287 }
@@ -295,7 +295,7 @@ public UIValidatorBase isBottomAlignedWith(WebElement element, String readableNa
295295 @ Override
296296 public UIValidatorBase isBottomAlignedWith (List <WebElement > elements ) {
297297 for (WebElement element : elements ) {
298- rootElement .validateBottomAlignedWith (asElement (element ), errors );
298+ rootElement .validateBottomAlignedWith (asElement (element ), getContext (), errors );
299299 }
300300 drawBottomOffsetLine ();
301301 return this ;
0 commit comments