Skip to content

feat: add warning to drop forceMjsonwp for W3C#567

Merged
KazuCocoa merged 7 commits intoappium:masterfrom
KazuCocoa:drop-forcemjsonwp
Dec 21, 2020
Merged

feat: add warning to drop forceMjsonwp for W3C#567
KazuCocoa merged 7 commits intoappium:masterfrom
KazuCocoa:drop-forcemjsonwp

Conversation

@KazuCocoa
Copy link
Member

forceMjsonwp only sends MJSONWP formatted capabilities, but selenium 4 and Appium is already going to focus on W3C.

The initial motivation to allow forceMjsonwp was to help users so that they were able to move to W3C from MJSONWP in their timeline. chrome driver also already defaults to W3C spec, so it's a good time to drop it.

@mykola-mokhnach
Copy link
Contributor

mykola-mokhnach commented Dec 20, 2020

I would rather have this commit for the next major version of the client (the one that supports selenium4). Removing this cap would enforce us to change the major version number anyway

@KazuCocoa KazuCocoa changed the title feat: ignore forceMjsonwp for W3C feat: add warning to drop forceMjsonwp for W3C Dec 20, 2020
@KazuCocoa
Copy link
Member Author

Okay, I have no objection. I changed to print a warning instead as deprecated.
(The selenium-4 branch already does not have this)

"""Manage capabilities whether W3C format or MJSONWP format
"""
if _FORCE_MJSONWP in capabilities:
logger.warning("[Deprecated] 'forceMjsonwp' capability will be dropped")
Copy link
Contributor

Choose a reason for hiding this comment

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

I would rather add a more detailed explanation of why the capability is going to be dropped and what is necessary to do in order to be ready for it

@KazuCocoa KazuCocoa merged commit e51bcd2 into appium:master Dec 21, 2020
@KazuCocoa KazuCocoa deleted the drop-forcemjsonwp branch December 21, 2020 08:43
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