import time
desired_capabilities = {
"platformName": "iOS",
"platformVersion": "16.7.4",
"deviceName": "",
"udid": "",
"automationName": "XCUITest",
"bundleId": "",
"xcodeOrgId": "",
"xcodeSigningId": "iPhone Developer",
}
driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", desired_capabilities)
time.sleep(10)
driver.quit()
error: AttributeError: 'NoneType' object has no attribute 'to_capabilities'