Skip to content

removing deprecated executeAsync function#3

Merged
rounak610 merged 3 commits intowdio_v9_fixesfrom
fix_deprecate_executeAsync
Jan 28, 2025
Merged

removing deprecated executeAsync function#3
rounak610 merged 3 commits intowdio_v9_fixesfrom
fix_deprecate_executeAsync

Conversation

@rounak610
Copy link
Owner

Proposed changes

Types of changes

  • Polish (an improvement for an existing feature)
  • 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 (improvements to the project's docs)
  • Specification changes (updates to WebDriver command specifications)
  • Internal updates (everything related to internal scripts, governance documentation and CI files)

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 the necessary documentation (if appropriate)
  • I have added proper type definitions for new commands (if appropriate)

Backport Request

//: # (The current main branch is the development branch for WebdriverIO v9. If your change should be released to the current major version of WebdriverIO (v8), please raise another PR with the same changes against the v8 branch.)

  • This change is solely for v9 and doesn't need to be back-ported
  • Back-ported PR at #XXXXX

Further comments

Reviewers: @webdriverio/project-committers

const fnBody = accessibilityScripts.saveTestResults || ''
const arg = dataForExtension
const results: unknown = await browser.execute(
`return (await function (...bstackSdkArgs) {

Choose a reason for hiding this comment

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

await needs to be removed right?

Choose a reason for hiding this comment

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

pushed last commit?

Copy link
Owner Author

Choose a reason for hiding this comment

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

have fixed this, plz review again

const summaryResults: { [key: string]: unknown; } = await (browser as WebdriverIO.Browser).executeAsync(AccessibilityScripts.getResultsSummary as string)
const fnBody = AccessibilityScripts.getResultsSummary || ''
const summaryResults: { [key: string]: unknown; } = await browser.execute(
`return (function (...bstackSdkArgs) {

Choose a reason for hiding this comment

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

let's create a util method for this. DRY

Copy link
Owner Author

@rounak610 rounak610 Jan 27, 2025

Choose a reason for hiding this comment

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

have moved this repetitive code to a function in util.ts, plz review again

@rounak610 rounak610 merged commit f425450 into wdio_v9_fixes Jan 28, 2025
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.

2 participants