-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] DevTools command logging options (#135) +semver: feature
Add optional parameter for DevTools Command/Result logging options to SendCommand and ExecuteCdpCommand methods
- Loading branch information
Showing
3 changed files
with
95 additions
and
13 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
39 changes: 39 additions & 0 deletions
39
src/main/java/aquality/selenium/logging/DevToolsCommandLoggingOptions.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,39 @@ | ||
package aquality.selenium.logging; | ||
|
||
/** | ||
* DevTools Command/Result logging options. | ||
*/ | ||
public class DevToolsCommandLoggingOptions { | ||
private LoggingParameters command = new LoggingParameters(true, LogLevel.INFO); | ||
private LoggingParameters result = new LoggingParameters(true, LogLevel.INFO); | ||
|
||
/** | ||
* Gets logging parameters for command info: name and parameters (if any). | ||
* @return command info logging parameters. | ||
*/ | ||
public LoggingParameters getCommand() { | ||
return command; | ||
} | ||
|
||
/** | ||
* Sets logging parameters for command info: name and parameters (if any). | ||
*/ | ||
public void setCommand(LoggingParameters command) { | ||
this.command = command; | ||
} | ||
|
||
/** | ||
* Gets logging parameters for command result (when it's present). | ||
* @return logging parameters of command result. | ||
*/ | ||
public LoggingParameters getResult() { | ||
return result; | ||
} | ||
|
||
/** | ||
* Sets logging parameters for command result (when it's present). | ||
*/ | ||
public void setResult(LoggingParameters result) { | ||
this.result = result; | ||
} | ||
} |
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