Skip to content

Commit

Permalink
Ensured that SauceLabs integration still works correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhit88 committed Jan 14, 2019
1 parent 1552877 commit 967a84a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Binary file modified out/production/classes/gateways/sauceLabs/SauceLabsUtils.class
Binary file not shown.
Binary file modified out/test/classes/frameworkSandbox/SelectDropdown.class
Binary file not shown.
4 changes: 2 additions & 2 deletions src/main/java/gateways/sauceLabs/SauceLabsUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public static WebDriver sauceLabsConfig(String slUser, String slPass, String bro
String appAddress) {
RemoteWebDriver driver = null;

if (slUser != null){
if (slUser == null){
Assert.fail("Please provide a SauceLabs username");
} else if (slPass != null){
} else if (slPass == null){
Assert.fail("Please provide a SauceLabs password");
} else {
try {
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/frameworkSandbox/SelectDropdown.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public static void beforeTest(){
// d = Drivers.firefoxDriver(d, "http://sl-test.herokuapp.com/guinea_pig/file_upload");
// d = Drivers.chromeDriver("http://sl-test.herokuapp.com/guinea_pig/file_upload");
File f = new File("/Users/darrinwhitley/Documents/workspace/slCreds");
d = Drivers.driverInit("Windows 10", PropsSystem.chrome, "https://www.newegg.com/", null, null, false, false);
String [] kv = ReadFile.readFile(f, "sauceLabs");
d = Drivers.driverInit("Windows 10", PropsSystem.chrome, "https://www.newegg.com/", kv[0], kv[1], true, false);
d.manage().window().maximize();
}

Expand Down

0 comments on commit 967a84a

Please sign in to comment.