-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from BorderTech/feature/fix-build
Update dependencies
- Loading branch information
Showing
10 changed files
with
97 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...ava/com/github/bordertech/webfriends/selenium/util/driver/type/WebDriverTypeChromium.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.github.bordertech.webfriends.selenium.util.driver.type; | ||
|
||
import com.github.bordertech.webfriends.selenium.util.driver.ConfigUtilProperties; | ||
import java.util.List; | ||
import org.openqa.selenium.chromium.ChromiumDriver; | ||
import org.openqa.selenium.chromium.ChromiumOptions; | ||
import org.openqa.selenium.remote.service.DriverService; | ||
|
||
/** | ||
* WebDriverType for Chromium based drivers. | ||
* | ||
* @param <T> the type of WebDriver returned | ||
* @param <M> the options for the driver | ||
* @param <D> the driver service | ||
*/ | ||
public interface WebDriverTypeChromium<T extends ChromiumDriver, M extends ChromiumOptions, D extends DriverService> extends WebDriverType<T, M, D> { | ||
|
||
@Override | ||
default void handleOverrideArguments(M options) { | ||
// Check for argument overrides from Parameters | ||
List<String> arguments = ConfigUtilProperties.getDriverArguments(getDriverTypeName()); | ||
if (!arguments.isEmpty()) { | ||
options.addArguments(arguments); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters