Skip to content

Commit 5158e78

Browse files
Merge pull request #47 from testdevlab/Remote
Add new chrome driver version 79
2 parents d304fe5 + 7aa9a5b commit 5158e78

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/testUI/AndroidUtils/ADBUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@ private static boolean doesFileExists(String filePath) {
371371

372372
private static String getChromedriverVersion(String chromeVersion) {
373373
switch (chromeVersion.split("\\.")[0]) {
374+
case "79":
375+
return "79.0.3945.36";
374376
case "78":
375377
return "78.0.3904.11";
376378
case "77":

src/main/java/testUI/Utils/By.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
import testUI.Configuration;
55

66
import static testUI.TestUIDriver.getDriver;
7+
import static testUI.TestUIDriver.getDrivers;
78

89
public class By {
910

1011
public static org.openqa.selenium.By byText(String text) {
1112
if (!Configuration.automationType.equals(Configuration.DESKTOP_PLATFORM))
12-
if (!getDriver().isBrowser())
13+
if (getDrivers().size() != 0 && !getDriver().isBrowser())
1314
return org.openqa.selenium.By.xpath("//*[contains(@text,'" + text + "')]");
1415
return Selectors.byText(text);
1516
}

0 commit comments

Comments
 (0)