Facing Exception error : selenium.common.exceptions.WebDriverException

I have added desired capability caps = { “platformName”: “ios”, “deviceName”: “iPhone 14”, “platformVersion”: “16”, “app”: “lt://APP1016045801683212035180225”, “build”: “Fierce”, “name”: “Login1”, “project”: “Fierceinhouse”, “deviceOrientation”: “portrait”, “isRealMobile”: True } driver = webdriver.Remote(" https://manesh.kadam:4PfGFzxs3nWXKFZGJmxsPXZWQFUPJvEayQg3Sz4zrIwuQEsH0s@mobile-hub.lambdatest.com/wd/hub", caps)

but getting an error:

alert_text = value[‘data’].get(‘text’) elif ‘alert’ in value: alert_text = value[‘alert’].get(‘text’) raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here

raise exception_class(message, screen, stacktrace) E selenium.common.exceptions.WebDriverException: Message: To use automation on desktop and virtual devices use http://hub.lambdatest.com/wd/hub

Hi Mark,

Upon checking the error, this refer to using to w3c protocol. To give a bit more context, for iOS 16 onwards, please send w3c-compliant capabilities only as Appium itself, is not supporting JSON wire capabilities now. Also, post-session creation also, all the commands should be in w3c compliant only.