GetPageSource goes in loop with after met error
See original GitHub issueThe 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:
- Created 7 years ago
- Comments:33 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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.