mmarquee / ui-automation

Java wrapper for ms-uiautomation
https://mmarquee.github.io/ui-automation/
Apache License 2.0
111 stars 54 forks source link

Chrome://accessibility resets upon re-instancing chrome #95

Open Xepheryy opened 6 years ago

Xepheryy commented 6 years ago

I noticed that whenever Chrome re-instantiates, the Chrome://accessbility page resets. This severely limits the interaction between the framework and Chrome, my current workaround is to use another browser such as Firefox.

Use case : Web application testing

Is there a suggested way of enabling this access permission in Chrome within the framework?

mmarquee commented 6 years ago

You should be able start the browser with --force-renderer-accessibility as an option. I've not tested this yet, but I will, and then add it to the documentation, together with an example

See: https://www.chromium.org/developers/design-documents/accessibility

Xepheryy commented 6 years ago

In my usage, rather than attaching to the Chrome application after executing it with --force-renderer-accessibility/ manually setting it via Chrome://accessibility, I launch the chrome application from my code itself. Hence my question in the original comment.

mmarquee commented 5 years ago

I have just pushed some changes to the develop branch with an example of starting Chrome with the correct parameters. I've added some documentation (using the same example). Can you see whether it works for you (sorry about the HUGE delay, I've been snowed under at work)

mmarquee commented 5 years ago

Updated documentation is here ...

https://github.com/mmarquee/ui-automation/blob/master/docs/chrome.md