question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GetPageSource goes in loop with after met error

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:33 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
Aswini-kumarPradhancommented, Feb 16, 2017

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.

1reaction
imurchiecommented, Feb 16, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - GetPageSource goes in loop with after met error -
There is known issues that some screens fail to load due to known errors on pageSource. When we meet with this problem Appium...
Read more >
Loop Error Handling / Loop not breaking when condition met ...
I use a IF statement to put the 1 behind the user name. Then a while loop to add a 2-10 if needed...
Read more >
[iOS] [C#] After updating from appium 1.6.0 to 1.6.2, I can no ...
Issue: GetPageSource goes in loop with after met error ... The problem There is known issues that some screens fail to load due...
Read more >
WebDriver - W3C on GitHub
It is an error to send any commands before starting a session, or to continue to send commands after the session has been...
Read more >
WebDriver - W3C
It is an error to send any commands before starting a session, or to continue to send commands after the session has been...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found