Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[java] log exception message #11922

Merged
merged 2 commits into from
Apr 20, 2023
Merged

[java] log exception message #11922

merged 2 commits into from
Apr 20, 2023

Conversation

titusfortner
Copy link
Member

Implements #11645

Code:

    ChromeOptions options = new ChromeOptions();
    options.setCapability("invalid", "value");
    WebDriver driver = new ChromeDriver(options);

Logging Current:

FINE: Executing: newSession [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions: {args: [--remote-allow-origins=*], extensions: []}, invalid: value}]}]
FINE: Exception: [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions: {args: [--remote-allow-origins=*], extensions: []}, invalid: value}]}]

Logging with PR:

FINE: Executing: newSession [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions: {args: [--remote-allow-origins=*], extensions: []}, invalid: value}]}]
FINE: Exception: newSession Illegal key values seen in w3c capabilities: [invalid]

@diemol diemol merged commit 93fa5f9 into trunk Apr 20, 2023
@diemol diemol deleted the log_exception branch April 20, 2023 14:55
dev-ardi pushed a commit to dev-ardi/selenium that referenced this pull request Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants