Skip to content

Commit

Permalink
Version 2022.12.28: Selenium module BasePage.getDriver with custom op…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
KMariusz committed Dec 28, 2022
1 parent c28b4d9 commit 7cc3d81
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 22 deletions.
6 changes: 3 additions & 3 deletions mrchecker-framework-modules/mrchecker-cli-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<parent>
<artifactId>mrchecker-test-framework</artifactId>
<groupId>com.capgemini.mrchecker</groupId>
<version>2022.12.23</version>
<version>2022.12.28</version>
</parent>

<artifactId>mrchecker-cli-module</artifactId>
<version>2022.12.23</version>
<version>2022.12.28</version>
<packaging>jar</packaging>
<name>MrChecker - CLI - Module</name>
<description>MrChecker CLI Module supports:
Expand Down Expand Up @@ -60,7 +60,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mrchecker-core-module</artifactId>
<version>2022.12.23</version>
<version>2022.12.28</version>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions mrchecker-framework-modules/mrchecker-core-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<artifactId>mrchecker-test-framework</artifactId>
<groupId>com.capgemini.mrchecker</groupId>
<version>2022.12.23</version>
<version>2022.12.28</version>
</parent>

<artifactId>mrchecker-core-module</artifactId>
<version>2022.12.23</version>
<version>2022.12.28</version>
<packaging>jar</packaging>
<name>MrChecker - Test core - Module</name>
<description>MrChecker Test Framework Core is responsible for:
Expand Down
6 changes: 3 additions & 3 deletions mrchecker-framework-modules/mrchecker-database-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<parent>
<artifactId>mrchecker-test-framework</artifactId>
<groupId>com.capgemini.mrchecker</groupId>
<version>2022.12.23</version>
<version>2022.12.28</version>
</parent>

<artifactId>mrchecker-database-module</artifactId>
<version>2022.12.23</version>
<version>2022.12.28</version>
<packaging>jar</packaging>
<name>MrChecker - Database - Module</name>
<description>MrChecker Database Module:
Expand Down Expand Up @@ -80,7 +80,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mrchecker-core-module</artifactId>
<version>2022.12.23</version>
<version>2022.12.28</version>
</dependency>

<!-- JPA dependencies -->
Expand Down
8 changes: 4 additions & 4 deletions mrchecker-framework-modules/mrchecker-mobile-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<artifactId>mrchecker-test-framework</artifactId>
<groupId>com.capgemini.mrchecker</groupId>
<version>2022.12.23</version>
<version>2022.12.28</version>
</parent>

<artifactId>mrchecker-mobile-module</artifactId>
<version>2022.12.23</version>
<version>2022.12.28</version>
<packaging>jar</packaging>
<name>MrChecker - Mobile - Module</name>
<description>MrChecker Test Framework name supports:
Expand Down Expand Up @@ -52,12 +52,12 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mrchecker-core-module</artifactId>
<version>2022.12.23</version>
<version>2022.12.28</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mrchecker-selenium-module</artifactId>
<version>2022.12.23</version>
<version>2022.12.28</version>
</dependency>

<!--This dependency is necessary for Appium plugin. -->
Expand Down
6 changes: 3 additions & 3 deletions mrchecker-framework-modules/mrchecker-security-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<artifactId>mrchecker-test-framework</artifactId>
<groupId>com.capgemini.mrchecker</groupId>
<version>2022.12.23</version>
<version>2022.12.28</version>
</parent>

<artifactId>mrchecker-security-module</artifactId>
<version>2022.12.23</version>
<version>2022.12.28</version>
<packaging>jar</packaging>
<name>MrChecker - Security - Module</name>
<description>MrChecker Test Framework Security supports:
Expand Down Expand Up @@ -63,7 +63,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mrchecker-core-module</artifactId>
<version>2022.12.23</version>
<version>2022.12.28</version>
</dependency>

<!-- Needed to perform all API calls -->
Expand Down
6 changes: 3 additions & 3 deletions mrchecker-framework-modules/mrchecker-selenium-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<artifactId>mrchecker-test-framework</artifactId>
<groupId>com.capgemini.mrchecker</groupId>
<version>2022.12.23</version>
<version>2022.12.28</version>
</parent>

<artifactId>mrchecker-selenium-module</artifactId>
<version>2022.12.23</version>
<version>2022.12.28</version>
<packaging>jar</packaging>
<name>MrChecker - Selenium - Module</name>
<description>MrChecker Test Framework Selenium supports:
Expand Down Expand Up @@ -98,7 +98,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mrchecker-core-module</artifactId>
<version>2022.12.23</version>
<version>2022.12.28</version>
</dependency>

<!--This dependency is necessary for Selenium plugin. -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ public static INewWebDriver getDriver() {
return driverManager.getDriver();
}

public static INewWebDriver getDriver(MutableCapabilities options) {
if (Objects.isNull(driverManager)) {
driverManager = new DriverManager(PROPERTIES_SELENIUM);
}
return driverManager.getDriver(options);
}

/**
* Navigates to previous site (works like pressing browsers 'Back' button)
*/
Expand Down
6 changes: 3 additions & 3 deletions mrchecker-framework-modules/mrchecker-webapi-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<artifactId>mrchecker-test-framework</artifactId>
<groupId>com.capgemini.mrchecker</groupId>
<version>2022.12.23</version>
<version>2022.12.28</version>
</parent>

<artifactId>mrchecker-webapi-module</artifactId>
<version>2022.12.23</version>
<version>2022.12.28</version>
<packaging>jar</packaging>
<name>MrChecker - WebApi - Module</name>
<description>
Expand Down Expand Up @@ -80,7 +80,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mrchecker-core-module</artifactId>
<version>2022.12.23</version>
<version>2022.12.28</version>
</dependency>

<!-- Dependency to REST and SOAP lib -->
Expand Down
2 changes: 1 addition & 1 deletion mrchecker-framework-modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.capgemini.mrchecker</groupId>
<artifactId>mrchecker-test-framework</artifactId>
<version>2022.12.23</version>
<version>2022.12.28</version>
<name>MrChecker</name>
<description>MrChecker Test Framework is an automated testing framework for functional testing of web applications,
native mobile apps, webservices and database.
Expand Down

0 comments on commit 7cc3d81

Please sign in to comment.