File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" :
Original file line number Diff line number Diff line change 44import testUI .Configuration ;
55
66import static testUI .TestUIDriver .getDriver ;
7+ import static testUI .TestUIDriver .getDrivers ;
78
89public 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 }
You can’t perform that action at this time.
0 commit comments