Skip to content

Commit d8ce515

Browse files
committed
[master] - implemented smart checked for languages on the page. Update README file
1 parent 4fd9379 commit d8ce515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/util/validator/LanguageChecker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static boolean isCorrectLanguageOnThePage(WebDriver driver, String lang)
4646
} else {
4747
for (int i = 0; i < bodyTextLength; i += textBlockLength) {
4848
String tempString;
49-
if (bodyTextLength >= (i + textBlockLength - 100) ) {
49+
if (bodyTextLength >= (i + textBlockLength) ) {
5050
tempString = bodyText.substring(i, i + textBlockLength);
5151

5252
try {

0 commit comments

Comments
 (0)