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
Testing Android Accessibility Services #4910
Comments
this just makes me think that the solution needs to be tightly integrated within our uiautomator code, so that it can share access to the uiautomator objects |
I'm stuck with same issue. Any progress on that? |
any update on this issue |
On Mon, Feb 22, 2016 at 2:28 AM, vivek978 notifications@github.com wrote:
|
Any update??? |
I'm stuck with same issue. Any progress on that? |
I'll ping the appium devs. |
If the issue is related to UiAutomator I don't see how we can work around that given that Appium runs on UiAutomator...? |
Is there any temporary workaround On Friday 13 May 2016, Jonathan Lipps notifications@github.com wrote:
|
@nikhil969 - there might be a workaround but this depends heavily on what you are testing. |
I think if you upgrade uiautomator to uiautomator v2 this issue will be resolved |
It is not possible to test Accessibility Services in parallel with UiAutomator. Both As a result it just not possible to use both |
@sravanmedarapu Could you please provide a little bit more details about the held resources in terms of code? I am confused. We can run simultaneously several By the way, I found out that you can run
If you obtain |
@maxblumental had good advice - also found we can do the following:
There is a related StackOverflow question: |
@maxblumental was this FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES implemented in appium? |
@sravanmedarapu why was this closed, when there is a possible fix mentioned in the previous comments? |
I'm testing with Appium 1.14.0 and this issue still exists. |
Thanks. I noticed the comment. I've added It is appreciated if someone can try the below steps to test the flag.
https://appiumpro.com/editions/47 espresso driver probably is also helpful since its almost API does not work via uiautomator |
Hi |
sorry, that was git checkout |
I assume you will need to run npm build before ./build/lib/main.js ? because the file is not exists anyway I tried to run npm build, no output showing, so I copied the command from package.json and it's shown below error
|
Can you run appium on your local in step2? |
Weer you able to try out @mrahmadt ? |
I used script command to enable accessibility service
On Tue, Aug 6, 2019 at 02:44 Kazuaki Matsuo ***@***.***> wrote:
Weer you able to try out @mrahmadt <https://github.com/mrahmadt> ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4910?email_source=notifications&email_token=AAHJ3YPIOA5P3CX54757R5LQDC3OVA5CNFSM4BABB7GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3TMP3I#issuecomment-518440941>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHJ3YPGGOBY4QIYOL3RSITQDC3OVANCNFSM4BABB7GA>
.
--
echo "Hello World :)"
|
@KazuCocoa |
You can try out appium/appium-uiautomator2-server#289 (comment) |
|
This solution is working for me as expected. Thank you so much @KazuCocoa |
Hello team |
How can I import UiAUtomation? |
I'm trying to find a way to test Accessibility Services on Android (4.4) but I don't get it working.
As a proof-of-concept I'm trying to test a simple accessiblity service that logs notifications.
I have been able to narrow down the issue to the UiAutomator. Everything works fine as long as I'm not using the UiAutomator, but as soon as the UiAutomator is involved the Accessibility Services are destroyed (see dumpsys and uiautomator outputs below). The Service are not disabled but simply destroyed i.e. they are still "on" according to the "Settings / Accessibility" i.e. to re-enable them I need to disable them first and then enable them.
The same happens if I'm starting an App via Appium, except that the
dumpsys accessiblity
fails when executed when the Appium Session is open.Is this something that could/should be managed by the Appium Bootstrap i.e. keep the accessibility services enabled (or re-enable them)?
outputs with appium
before opening the session
during open session
after closing the session
outputs without appium
If this a Android Platform thing (= UiAutomator bug or "feature") any other ideas how this could be done?
PS.
The same issue seems to be on Android 4.3 (no workarounds in these threads either)
https://groups.google.com/forum/#!msg/adt-dev/-9cyoNlRTh4/vzN0QyUwTVoJ
http://stackoverflow.com/questions/20341440/accessibilityservice-is-destroyed-when-uiautomator-is-run
The text was updated successfully, but these errors were encountered: