File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/main/java/util/driver Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,6 @@ public class WebDriverFactory {
3434 private RemoteWebDriver remoteWebDriver ;
3535 private DesiredCapabilities capabilities ;
3636
37- public WebDriverFactory () {
38- capabilities = getCapabilities ();
39- LOG .info ("Using capabilities: " + capabilities .toString ());
40- remoteUrlPath = getRemoteUrlPath ();
41- }
42-
4337 private static void setChromeDriver () {
4438 Platform platform = Platform .getCurrent ();
4539 String chromeBinary = "src/main/resources/drivers/chromedriver"
@@ -65,6 +59,9 @@ private static void setEdgeDriver() {
6559 }
6660
6761 public WebDriver getDriver () {
62+ capabilities = getCapabilities ();
63+ LOG .info ("Using capabilities: " + capabilities .toString ());
64+ remoteUrlPath = getRemoteUrlPath ();
6865 if (isMobile ()) {
6966 driver = getMobileDriver ();
7067 LOG .info ("Start Mobile driver" );
You can’t perform that action at this time.
0 commit comments