@@ -143,7 +143,7 @@ public void testToRightOfLocatorWithDifferentToRightOfParametersType() {
143
143
}
144
144
145
145
@ Test
146
- public void testAboveBelowLeftRight () {
146
+ public void testAboveBelowLeftRightWithDifferentParametersType () {
147
147
ILabel cellInRow3Column5 = challengingDomForm .getCellInRow3Column5 ();
148
148
ILabel cellInRow5Column7 = challengingDomForm .getCellInRow5Column7 ();
149
149
ILabel cellInRow5Column5 = challengingDomForm .getCellInRow5Column5 ();
@@ -194,7 +194,7 @@ public void testAboveBelowLeftRight() {
194
194
}
195
195
196
196
@ Test
197
- public void testNear () {
197
+ public void testNearWithDifferentNearParameterType () {
198
198
ILabel actualCellRaw2Column1GotWithAqualityElement =
199
199
elementFactory .getLabel (with (By .xpath (labelLocatorCell )).near (challengingDomForm .getCellInRow1Column1 ()),
200
200
ChallengingDomForm .ELEMENT_NAME_ROW2_COLUMN1 );
@@ -221,7 +221,7 @@ public void testNear() {
221
221
}
222
222
223
223
@ Test
224
- public void testNearWithDistance () {
224
+ public void testNearWithDistanceWithDifferentParametersType () {
225
225
ILabel actualHeaderNameGotWithAqualityElement =
226
226
elementFactory .getLabel (with (By .xpath (ChallengingDomForm .LOCATOR_CHALLENGING_DOM_FORM ))
227
227
.near (challengingDomForm .getCellInRow1Column1 (), distanceToFindElementWithPositiveResult ),
@@ -251,7 +251,7 @@ public void testNearWithDistance() {
251
251
}
252
252
253
253
@ Test
254
- public void testNearWithDistanceNegative () {
254
+ public void testNearWithDistanceNegativeWithDifferentParametersType () {
255
255
ILabel actualHeaderNameGotWithAqualityElement =
256
256
elementFactory .getLabel (with (By .xpath (ChallengingDomForm .LOCATOR_CHALLENGING_DOM_FORM ))
257
257
.near (challengingDomForm .getCellInRow1Column1 (), distanceToFindElementWithNegativeResult ),
@@ -268,19 +268,19 @@ public void testNearWithDistanceNegative() {
268
268
ChallengingDomForm .ELEMENT_NAME_HEADER_CHALLENGING_DOM );
269
269
270
270
271
- List <WebElement > actualsWebElementsHeaderNameGotBySeleniumRelative =
271
+ List <WebElement > actualWebElementsHeaderNameGotBySeleniumRelative =
272
272
getBrowser ().getDriver ().findElements (RelativeLocator .with (By .xpath (ChallengingDomForm .LOCATOR_CHALLENGING_DOM_FORM ))
273
273
.near (getBrowser ().getDriver ().findElement (By .xpath (challengingDomForm .getLocatorCellRow1Column1 ())), distanceToFindElementWithNegativeResult ));
274
274
275
275
SoftAssert softAssert = new SoftAssert ();
276
276
softAssert .assertFalse (actualHeaderNameGotWithAqualityElement .state ().isExist (), friendlyMessageElementFound );
277
277
softAssert .assertFalse (actualHeaderNameGotWithWebElement .state ().isExist (), friendlyMessageElementFound );
278
278
softAssert .assertFalse (actualHeaderNameGotWithXpath .state ().isExist (), friendlyMessageElementFound );
279
- softAssert .assertEquals (actualsWebElementsHeaderNameGotBySeleniumRelative .size (), 0 , friendlyMessageElementFound );
279
+ softAssert .assertEquals (actualWebElementsHeaderNameGotBySeleniumRelative .size (), 0 , friendlyMessageElementFound );
280
280
softAssert .assertAll ();
281
281
}
282
282
283
- public void checkDifferentTypesWithSoftAssert (String textAquality , String textWebElement , String textByXpath , String textSelenium , String expectedText ) {
283
+ private void checkDifferentTypesWithSoftAssert (String textAquality , String textWebElement , String textByXpath , String textSelenium , String expectedText ) {
284
284
SoftAssert softAssert = new SoftAssert ();
285
285
softAssert .assertEquals (textAquality , expectedText , friendlyMessageEquallingText );
286
286
softAssert .assertEquals (textByXpath , expectedText , friendlyMessageEquallingText );
0 commit comments