Comments (7)
@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.
Thanks for your question. Could you please answer the following questions so we can better understand the issue?
- 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.
- Are you performing multiple scans from within the same process?
- How much memory does it end up using?
- Is the memory increasing in the process that's running axe windows or the target application being scanned?
- 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.
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.
-
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();
-
Yes I'm performing multiple scans on same process
-
Memory shoots up to 2 GB
-
Memory increases for the process that runs Axe.Windows
-
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.
@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.
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.
@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)
- [BUG] Got Error when using CaptureAction.SetLiveModeDataContext HOT 1
- ScanAsync needs overloads to scan process's UIA sub-trees HOT 2
- [Feature Request] Need Task<ScanResults> IScanner.ScanAsync() HOT 6
- [Feature Request] NativeMethods.SetProcessDPIAware() should be reset after scan HOT 6
- [Feature Request] Localization support in the CI/DI pipeline HOT 5
- CustomUIA settings have some overlap between async scans HOT 2
- Handle BoundingRectangleSizeReasonable rule for elements with area of less than 25 pixels HOT 15
- [Feature Request] Make scans against Chromium-based UIs more actionable HOT 9
- [BUG] Should NameIsInformative rule filter out more frameworks? HOT 6
- Re-enable Scan_Integration_WebViewSample test in PR build ? HOT 2
- [Feature Request] Provide a way for .a11ytest files to be retained even if a scan produces no errors HOT 6
- Update WiX from v3 to v4 HOT 4
- [Feature Request] Make DefaultActionContext public HOT 5
- [BUG] WinForms edit controls don't support TextPattern until .NET Framework 4.8.1 HOT 2
- [BUG] MSI installer should warn user about unsupported OS HOT 2
- [General Question] How to disable rules HOT 3
- [General Question] False positive for "The Name property must not include the element's control type." HOT 1
- [General Question] Why does axe-windows not include axe-core and its rules? HOT 4
- [BUG] *.yml and *.targets files should contain copyright headers
- [BUG] Axe.Windows files are signed with the 3rd party certificate HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axe-windows.