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

[🐛 Bug]: Type compile issue when upgrading to W9 - 'Type 'ChainablePromiseElement' is not assignable to type 'Element'.' #524

Open
3 tasks done
rajivnw opened this issue Dec 5, 2024 · 2 comments
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@rajivnw
Copy link

rajivnw commented Dec 5, 2024

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

9

Node.js Version

20

Mode

WDIO Testrunner

Which capabilities are you using?

No response

What happened?

when checkout 'appium-boilerplate' project I noticed Type compile issue
'Type 'ChainablePromiseElement' is not assignable to type 'Element'.'

What is your expected behavior?

No response

How to reproduce the bug.

To Reproduce
take a checkout checkout 'appium-boilerplate' project and do npm install and check in LoginScreen.ts file

image

seems below method signature for element has changed now its returning ChainablePromiseElement.
function $(selector: Selector): ChainablePromiseElement

Is there way to fix this as for existing projects its a bigger change. All the method signatures, if they are accepting WebDriverIO.Element as param, have to update.

Relevant log output

NA

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues
@christian-bromann christian-bromann transferred this issue from webdriverio/webdriverio Dec 6, 2024
@christian-bromann christian-bromann added help wanted Extra attention is needed good first issue Good for newcomers labels Dec 6, 2024
@wdio-bot
Copy link

wdio-bot commented Dec 6, 2024

Thanks for reporting!

We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers!

@christian-bromann
Copy link
Member

@rajivnw I am sorry, I wasn't aware you were directed to file the issue in core.

cc @wswebcreation I wanted to review the boilerplate anyway very soon and will take a look.

@christian-bromann christian-bromann self-assigned this Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants