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
Make requestedCapabilities
better accessible
#5351
Conversation
ef05501
to
a494c47
Compare
@christian-bromann |
Yes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you think we need to have both options.capabilities and requestedCapabilities?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving anyway as far as we can tackle questions above separately if needed.
Thank you
Proposed changes
A lot of user have asked how to access their original capabilities from the browser object. So far we have given advise to access it via an un-documented way using:
browser.options.requestedCapabilities.w3cCaps
which we used internally to allow reloading the session with the same set of caps. This PR improves the access to this object by just callingbrowser.requestedCapabilities
.Types of changes
Checklist
Further comments
n/a
Reviewers: @webdriverio/project-committers