appium: GetPageSource goes in loop with after met error

The problem

There is known issues that some screens fail to load due to known errors on pageSource. When we meet with this problem Appium server goes into LOOP. Example of logs attached.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.6.0
  • Last Appium version that did not exhibit the issue (if applicable): 1.5.3
  • Desktop OS/version used to run Appium:
  • Node.js version (unless using Appium.app|exe):
  • Mobile platform/version under test: iOS xCode 8
  • Real device or emulator/simulator: Simulator 10.0
  • Appium CLI or Appium.app|exe:

Link to Appium logs

[debug] [XCUITest] Executing command 'getPageSource'
[JSONWP Proxy] Proxying [POST /source] to [POST http://localhost:8100/session/204AA610-4CD4-473B-871D-C9A89861068C/source] with no body
[debug] [WebDriverAgent] Sim: Oct 17 11:37:48 aleks XCTRunner[38682]: Enqueue Failure: UI Testing Failure - Failure fetching attributes for element <XCAccessibilityElement: 0x618000447f50> Device element: Error Domain=XCTestManagerErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} <unknown> 0 1
[debug] [WebDriverAgent] Sim: Oct 17 11:38:03 aleks XCTRunner[38682]: Enqueue Failure: UI Testing Failure - Failure fetching attributes for element <XCAccessibilityElement: 0x618000459cb0> Device element: Error Domain=XCTestManagerErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} <unknown> 0 1
[debug] [WebDriverAgent] Sim: Oct 17 11:38:19 aleks XCTRunner[38682]: Enqueue Failure: UI Testing Failure - Failure fetching attributes for element <XCAccessibilityElement: 0x61800025ddc0> Device element: Error Domain=XCTestManagerErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} <unknown> 0 1
[debug] [WebDriverAgent] Sim: Oct 17 11:38:34 aleks XCTRunner[38682]: Enqueue Failure: UI Testing Failure - Failure fetching attributes for element <XCAccessibilityElement: 0x618000450ec0> Device element: Error Domain=XCTestManagerErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} <unknown> 0 1
[debug] [WebDriverAgent] Sim: Oct 17 11:38:49 aleks XCTRunner[38682]: Enqueue Failure: UI Testing Failure - Failure fetching attributes for element <XCAccessibilityElement: 0x61800025d3a0> Device element: Error Domain=XCTestManagerErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} <unknown> 0 1
[debug] [WebDriverAgent] Sim: Oct 17 11:39:04 aleks XCTRunner[38682]: Enqueue Failure: UI Testing Failure - Failure fetching attributes for element <XCAccessibilityElement: 0x61800024b340> Device element: Error Domain=XCTestManagerErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} <unknown> 0 1

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 33 (11 by maintainers)

Most upvoted comments

I was too facing this issue. Did the following

npm uninstall -g appium npm install -g appium --no-shrinkwrap

It resolved my driver.getpagesource to go into loop.

Beta releases are not shrinkwrapped. Installing appium@beta gets the latest of everything. Full releases are shrinkwrapped, so the dependencies are locked. If someone wants the latest from a full release --no-shrinkwrap is necessary.

No. It’s for debugging and trying things out, and purposefully undocumented. Normally it should not be used, since there are often breaking changes in WDA and if you use your own copy that we haven’t incorporated into the Appium driver for it, things can be broken.

You can also clone WDA wherever you’d like, and then pass in the full path to the directory using the bootstrapPath desired capability.