am testing iOS application. in the initial page, I need to tap on a button. I am getting below error:
[MJSONWP] Encountered internal error running command: Error: An error occurred
at JWProxy.command$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:176:15)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-base-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-base-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-base-driver/node_modules/babel-runtime/regenerator/runtime.js💯21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-base-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
[HTTP] <-- GET /wd/hub/session/78a0a9c6-0b25-46f2-a2a9-8468e2692db7 500 50 ms - 188
[XCUITest] Connection to WDA timed out
[iProxy] recv failed: Operation not permitted
##Code used
simple find element command->
WebElement btn = driver.findElement(By.Name(“Allow & Sign in”));
Environment
Appium version (or git revision) that exhibits the issue: 1.7.2
Last Appium version that did not exhibit the issue (if applicable):
Desktop OS/version used to run Appium: MacBook Pro/ 10.12.6 (16G29)
Node.js version (unless using Appium.app|exe): v8.9.4
Mobile platform/version under test: iPhone 6S Plus / iOS 11.0.3
Real device or emulator/simulator: Real device
Appium CLI or Appium.app|exe: Appium.app
XCode version - 9.2
Appium logs:
Device logs:
NOTE: I CAN ABLE TO FIND ELEMENTS VIA APPIUM INSPECTOR. GETTING THIS ERROR ONLY IN SCRIPT
NOTE: I CAN ABLE TO PERFORM SWIPE(USING TOUCH ACTIONS) BEFORE ELEMENT IDENTIFICATION