Skip to content

Commit e51bcd2

Browse files
authored
feat: add warning to drop forceMjsonwp for W3C (#567)
* tweak * fix test * print warning * revert test * Update webdriver.py * fix autopep8
1 parent 9c7fbce commit e51bcd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

appium/webdriver/webdriver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ def _merge_capabilities(self, capabilities: Dict) -> Dict[str, Any]:
241241
"""Manage capabilities whether W3C format or MJSONWP format
242242
"""
243243
if _FORCE_MJSONWP in capabilities:
244+
logger.warning("[Deprecated] 'forceMjsonwp' capability will be dropped after switching base selenium client from v3 to v4 "
245+
"to follow W3C spec capabilities. Appium 2.0 will also support only W3C session creation capabilities.")
244246
force_mjsonwp = capabilities[_FORCE_MJSONWP]
245247
del capabilities[_FORCE_MJSONWP]
246248

0 commit comments

Comments
 (0)