Code Monkey home page Code Monkey logo

Comments (4)

eglitise avatar eglitise commented on May 28, 2024 1

This has been previously requested in #19758, but currently this does not seem possible. You can try to decrease the value of snapshotMaxDepth to reduce the chance of crashes, and/or use the mobile:source execute method to exclude attributes that you may find less relevant, which should also help.

from appium.

KazuCocoa avatar KazuCocoa commented on May 28, 2024

pageSourceExcludedAttributes in Settings API https://appium.github.io/appium-xcuitest-driver/latest/reference/settings/ also might help to get response with excludedAttributes in the mobile:source via general source endpoint

from appium.

bijitbiswas1994 avatar bijitbiswas1994 commented on May 28, 2024

@KazuCocoa I tried like this but still I can see the visible attribute in the element details
image
Am I doing any mistake here ?

from appium.

KazuCocoa avatar KazuCocoa commented on May 28, 2024

if the response had not included visible, it worked. If it still occurs with small size of snapshotMaxDepth as well, simply the entire element is large to build XML by WDA.
Apple does not provide the XML format natively so Appium/WDA build it by getting element tree recursively. If the element is huge, Appium/WDA will take more time (and if the entire memory usage will increase, it may crash). To limit the element size to get, snapshotMaxDepth would help. The excludedAttributes is to avoid some element calculation on WDA to build XML.

Not via appium inspector, but with format: description via https://appium.github.io/appium-xcuitest-driver/latest/reference/execute-methods/#mobile-source returns vanilla string format info by XCTest framework. It would also help to see available elements but it is not XML format like parsable in the inspector.

from appium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.