Skip to content

Conversation

@rev-doshi
Copy link
Owner

Proposed changes

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • I have added proper type definitions for new commands (if appropriate)

Further comments

Reviewers: @webdriverio/project-committers

platform: this._platformMeta?.platformName,
capabilities: caps,
session_id: sessionId,
browser: caps.browserName,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
browser: caps.browserName,
browser: caps?.browserName,

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

}

private getIntegrationsObject () {
const caps = (this._browser as WebdriverIO.Browser).capabilities as WebdriverIO.Capabilities

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const caps = (this._browser as WebdriverIO.Browser).capabilities as WebdriverIO.Capabilities
const caps = (this._browser as WebdriverIO.Browser)?.capabilities as WebdriverIO.Capabilities

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


private getIntegrationsObject () {
const caps = (this._browser as WebdriverIO.Browser).capabilities as WebdriverIO.Capabilities
const sessionId = (this._browser as WebdriverIO.Browser).sessionId

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const sessionId = (this._browser as WebdriverIO.Browser).sessionId
const sessionId = (this._browser as WebdriverIO.Browser)?.sessionId

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants