Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get 'xml' source of the current application error #13705

Closed
ShwethaSarathy opened this issue Dec 11, 2019 · 12 comments
Closed

Cannot get 'xml' source of the current application error #13705

ShwethaSarathy opened this issue Dec 11, 2019 · 12 comments
Labels
ThirdParty upstream problems XCUITest regarding xcuitest driver

Comments

@ShwethaSarathy
Copy link

ShwethaSarathy commented Dec 11, 2019

The problem

I am getting "Cannot get 'xml' source of the current application" error on refreshing page source on one page for a native application. On Apppium desktop the spinner keeps spinning when i click on the button and after a while spinner vanishes but page refresh doesn't happen. When i run through code i get the error as "org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Cannot get 'xml' source of the current application". I have attached the appium server logs. Could you please look into the issue?

Appium_Server_Log.txt

Environment

  • Appium version (or git revision) that exhibits the issue: 1.15.1
  • Last Appium version that did not exhibit the issue (if applicable): 1.13
  • Desktop OS/version used to run Appium: macOS mojave 10.14.6
  • Node.js version (unless using Appium.app|exe): 11.6.0
  • Npm or Yarn package manager: npm - 6.5.0
  • Mobile platform/version under test: 13.1
  • Real device or emulator/simulator: Real Device (iPhone X)
    *Appium CLI or Appium.app|exe: .app file

##Code
public void i_print_pagesource() throws Throwable {
Log.info("Page source is:\n" + driver.getPageSource());
}

@imurchie
Copy link
Contributor

Is there anything in the device logs when this is happening?

Is there anything different about the one page on which this happens?

@mykola-mokhnach mykola-mokhnach added ThirdParty upstream problems XCUITest regarding xcuitest driver labels Dec 11, 2019
@ShwethaSarathy
Copy link
Author

ShwethaSarathy commented Dec 11, 2019

Is there anything in the device logs when this is happening?

Is there anything different about the one page on which this happens?

I see below error on the console log:

XCTAS Error: XCTAutomationSupportErrorSnapshotFailure: Error kAXErrorIPCTimeout getting snapshot for element

XCTAS Error: Error Domain=com.apple.dt.xctest.automation-support.error Code=5 UserInfo={NSLocalizedDescription=}

XCTAS Error: XCTAutomationSupportErrorUnknownElement: Error getting main window kAXErrorIPCTimeout

XCTAS Error: Error Domain=com.apple.dt.xctest.automation-support.error Code=8 UserInfo={NSLocalizedDescription=}

@mykola-mokhnach
Copy link
Collaborator

I'm sure other people who reported their issues before already had similar problems. Check if any of the solutions proposed there work for your case. We don't have anything more to suggest on the case as it is not an issue in Appium, but the XCTest one

@ShwethaSarathy
Copy link
Author

ShwethaSarathy commented Dec 11, 2019

I'm sure other people who reported their issues before already had similar problems. Check if any of the solutions proposed there work for your case. We don't have anything more to suggest on the case as it is not an issue in Appium, but the XCTest one

I went through all the similar reported issues. Most were resolved with latest version of appium. But I am already on one of the latest version for iOS13 testing.

@mykola-mokhnach
Copy link
Collaborator

I went through all the similar reported issues

Which particular solutions did you try, that were described there?

@imurchie
Copy link
Contributor

There have also been significant changes in the beta/rc versions of Appium, particularly in the evolving support for iOS 13. I would at least try the latest release candidate.

@ShwethaSarathy
Copy link
Author

I went through all the similar reported issues

Which particular solutions did you try, that were described there?

Issues that were in resolved state had the solution of upgrading to 1.15.1 version, which i am already on. I didnt see any other solution

@ShwethaSarathy
Copy link
Author

There have also been significant changes in the beta/rc versions of Appium, particularly in the evolving support for iOS 13. I would at least try the latest release candidate.

Will try this.

@mykola-mokhnach
Copy link
Collaborator

Also linking #13595

@liviulupei
Copy link

You should try it with Endtest and see if it works.

@mykola-mokhnach
Copy link
Collaborator

Unfortunately there is nothing more we can advice on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ThirdParty upstream problems XCUITest regarding xcuitest driver
Projects
None yet
Development

No branches or pull requests

4 participants