Skip to content

Commit

Permalink
updated drivermanager class back to use getProperty method for lambda…
Browse files Browse the repository at this point in the history
…test credentials
  • Loading branch information
mfaisalkhatri committed Mar 25, 2024
1 parent cd12699 commit 4004cc4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/main/java/io/github/mfaisalkhatri/drivers/DriverManager.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
package io.github.mfaisalkhatri.drivers;

import static java.text.MessageFormat.format;

import java.net.MalformedURLException;
import java.net.URL;
import java.nio.file.Paths;
import java.time.Duration;
import java.util.HashMap;
import java.util.Objects;

import io.github.bonigarcia.wdm.WebDriverManager;
import io.github.mfaisalkhatri.enums.Browsers;
import org.apache.logging.log4j.LogManager;
Expand All @@ -19,6 +10,15 @@
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium.remote.RemoteWebDriver;

import java.net.MalformedURLException;
import java.net.URL;
import java.nio.file.Paths;
import java.time.Duration;
import java.util.HashMap;
import java.util.Objects;

import static java.text.MessageFormat.format;

/**
* @author Faisal Khatri
* @since 24/07/2022
Expand All @@ -28,8 +28,8 @@ public final class DriverManager {
private static final String GRID_URL = "@hub.lambdatest.com/wd/hub";
private static final String HUB_URL = "http://localhost:4444/wd/hub";
private static final Logger LOG = LogManager.getLogger ("DriverManager.class");
private static final String LT_ACCESS_KEY = System.getenv ("LT_ACCESS_KEY");
private static final String LT_USERNAME = System.getenv ("LT_USERNAME");
private static final String LT_ACCESS_KEY = System.getProperty("LT_ACCESS_KEY");
private static final String LT_USERNAME = System.getProperty("LT_USERNAME");
private static final String NO_SANDBOX = "--no-sandbox";
private static final String DISABLE_DEV_SHM = "--disable-dev-shm-usage";
private static final String CUSTOM_WINDOW_SIZE = "--window-size=1050,600";
Expand Down

0 comments on commit 4004cc4

Please sign in to comment.