Skip to content

Issue 983 #993

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

Closed

Conversation

P-Courteille
Copy link
Contributor

📝 Description

This PR is a fix for issue 983.


🐛 Bug

In the previous version of the code, the functions was added first to each instance of the browser and then to the browser object.

The problem is, @wdio\utils\build\index.js (line 388) already add the command to each instance so the commande added to each instance was overwritten by the one containing the loop of each instance.


🛠️ Solution

Change the addCommand order for Multi Remote

  • first, add the command to Browser in a Multi Remote version (with a loop to do the function in each instance)
  • then, add the command to each instance in a Single Remote version
    For ocr-service

@P-Courteille P-Courteille changed the base branch from main to ws/rewrite-core July 19, 2025 16:29
@wswebcreation wswebcreation deleted the branch webdriverio:ws/rewrite-core July 22, 2025 07:38
@wswebcreation
Copy link
Member

@P-Courteille

Can you change the branch to merge to main again? Or create a new one? Thanks

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