Giter Site home page Giter Site logo

[General Question] about axe-windows HOT 7 CLOSED

microsoft avatar microsoft commented on August 21, 2024
[General Question]

from axe-windows.

Comments (7)

RobGallo avatar RobGallo commented on August 21, 2024 1

@SGDeveloperAcct
We have no plans right now to remove it. But because it is not part of the supported API, we cannot guarantee it won't be changed sometime.
May I ask why you're creating your own tool rather than using either axe-windows or Accessibility Insights for Windows? Perhaps if we understood your need, it might be something we would want to add to Accessibility Insights. That way, everyone in the community could benefit.

from axe-windows.

lisli1 avatar lisli1 commented on August 21, 2024

Thanks for your question. Could you please answer the following questions so we can better understand the issue?

  1. Are you using the supported API when this happens? You can find the supported API documented here: https://github.com/microsoft/axe-windows/blob/master/docs/AutomationReference.md. Any interfaces and classes that are not described in that document are unsupported and subject to breaking changes at any time.
  2. Are you performing multiple scans from within the same process?
  3. How much memory does it end up using?
  4. Is the memory increasing in the process that's running axe windows or the target application being scanned?
  5. It seems like you are trying to scan web pages. In the case of scanning web pages, we recommend using axe-core instead. You can reference axe-pipelines-samples for examples on how to integrate accessibility checking with axe-core in your CI builds. Please let us know if this option would work for you.

from axe-windows.

 avatar commented on August 21, 2024

The team requires additional author feedback; please review their replies and update this issue accordingly. Thank you for contributing to Accessibility Insights!

from axe-windows.

SGDeveloperAcct avatar SGDeveloperAcct commented on August 21, 2024
  1. I've created a windows forms application which will get list of controls on the selected application. Code hooked to button click as follows
    var sa = SelectAction.GetDefaultInstance();
    sa.Select();
    Guid? ecId = sa.GetSelectedElementContextId();
    var ec = GetDataAction.GetElementContext(sa.GetSelectedElementContextId().Value);

         CaptureAction.SetTestModeDataContext(ecId.Value, DataContextMode.Test, TreeViewMode.Control, true);
    
         if (ec.DataContext != null && ec.DataContext.Elements != null)
         {
         }
    
         MessageBox.Show("Calling dispose");
         GC.Collect();
    
  2. Yes I'm performing multiple scans on same process

  3. Memory shoots up to 2 GB

  4. Memory increases for the process that runs Axe.Windows

  5. I'm trying to create a windows forms application. I couldn't find a nuget package called Axe.Core for windows forms application

Please help me resolve this.

from axe-windows.

RobGallo avatar RobGallo commented on August 21, 2024

@SGDeveloperAcct
I'm afraid we don't support the interfaces you're using. They are not intended to be used outside the context of Accessibility Insights for Windows.
However, To address your issue, you will need to make sure you manage the objects you create with great care, calling Dispose whenever you are done with an object. My suspicion is right now you have some axe-windows objects you aren't freeing. Just telling the garbage collector to free up unused memory isn't enough because the garbage collector thinks the objects are still in use.
I'm going to close this issue because it isn't related to the intended use of axe-windows. But you are welcome to open it again if you feel I've done so in error.

from axe-windows.

 avatar commented on August 21, 2024

This issue has been marked as being beyond the support scope of Accessibility Insights. It will now be closed automatically for house-keeping purposes.

from axe-windows.

SGDeveloperAcct avatar SGDeveloperAcct commented on August 21, 2024

@RobGallo We are building a small Internal too similar to accessibility insights for testing for which we used this as a reference. Any chance that this method might be removed later?

from axe-windows.

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.