Android action bar can't be seen by the Ranorex Spy
-
- Posts: 3
- Joined: Mon Oct 05, 2015 8:39 am
Android action bar can't be seen by the Ranorex Spy
Hi Guys,
We're having a problem when recording an Android mobile application which has an action bar on top. We are trying to do a Record-and-Play but when we touch the action bar, no action is added in the action grid. And when we tried to View Spy, the action bar is not present.
Do you have any ideas why Ranorex can't identify the action bar?
Thanks!
Chris
We're having a problem when recording an Android mobile application which has an action bar on top. We are trying to do a Record-and-Play but when we touch the action bar, no action is added in the action grid. And when we tried to View Spy, the action bar is not present.
Do you have any ideas why Ranorex can't identify the action bar?
Thanks!
Chris
Re: Android action bar can't be seen by the Ranorex Spy
Hi Chris and welcome here,
Are you sure the "action bar" is a part of your instrumented application? In other words, are you sure it's not something system-owned? Ranorex can automate only instrumented mobile apps! System-owned elements may not be recognized/recorded.
If the action bar is a part of your application, please provide more details about your app (Android version, used dev. technology, libs, etc...). Ideally, send the app to [email protected] so Ranorex folks can analyze it.
Are you sure the "action bar" is a part of your instrumented application? In other words, are you sure it's not something system-owned? Ranorex can automate only instrumented mobile apps! System-owned elements may not be recognized/recorded.
If the action bar is a part of your application, please provide more details about your app (Android version, used dev. technology, libs, etc...). Ideally, send the app to [email protected] so Ranorex folks can analyze it.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
-
- Posts: 3
- Joined: Mon Oct 05, 2015 8:39 am
Re: Android action bar can't be seen by the Ranorex Spy
Hi odklizec,
Thank you for replying!
Hubert from support helped us with our action bar problem. The thing is, we have a BaseActivity which extends the ActionBarActivity (which is deprecated already) and our application still uses the ActionBarActivity. When we use uiautomatorview to see the elements of the activity, the ActionBar is on the same level of the Form node. What I observed with Ranorex is that it identifies elements inside the Form node.
Can we still select the action bar outside the Form node?
Although, we made a sample application which implements a new Action bar container (which is now residing inside the Form node) is now being identified by Ranorex. We might consider changing our code to the new action bar implementation.
Thanks!
Chris
Thank you for replying!
Hubert from support helped us with our action bar problem. The thing is, we have a BaseActivity which extends the ActionBarActivity (which is deprecated already) and our application still uses the ActionBarActivity. When we use uiautomatorview to see the elements of the activity, the ActionBar is on the same level of the Form node. What I observed with Ranorex is that it identifies elements inside the Form node.
Can we still select the action bar outside the Form node?
Although, we made a sample application which implements a new Action bar container (which is now residing inside the Form node) is now being identified by Ranorex. We might consider changing our code to the new action bar implementation.
Thanks!
Chris
-
- Posts: 3
- Joined: Mon Oct 05, 2015 8:39 am
Re: Android action bar can't be seen by the Ranorex Spy
For anybody who stumbles with the same issue as this one.
The fix is to set the Tree simplification to True under the APK Settings. Or on the Deploy APK Action under its Properties section.
Thanks to Hubert for the help!
Cheers!
The fix is to set the Tree simplification to True under the APK Settings. Or on the Deploy APK Action under its Properties section.
Thanks to Hubert for the help!
Cheers!
Re: Android action bar can't be seen by the Ranorex Spy
I faced this issue today after major UI changes in our app.
above solution didn't help since Tree simplification to True by default in wizard.
any other way to solve this issue ?
above solution didn't help since Tree simplification to True by default in wizard.
any other way to solve this issue ?
Re: Android action bar can't be seen by the Ranorex Spy
Hello thilina,
Can you see the element in the Ranorex Spy?
If you can not see the element, then you should try to enable Android OS Automation and check again if the element is now visible. You can find out how to enable Android OS Automation under the following link: Automation of system apps
Please also provide us with the following:
1. More information on the element that you can't interact with.
2. A Ranorex Snapshot of the application: How To Create A Ranorex Snapshot
Regards,
McTurtle
Can you see the element in the Ranorex Spy?
If you can not see the element, then you should try to enable Android OS Automation and check again if the element is now visible. You can find out how to enable Android OS Automation under the following link: Automation of system apps
Please also provide us with the following:
1. More information on the element that you can't interact with.
2. A Ranorex Snapshot of the application: How To Create A Ranorex Snapshot
Regards,
McTurtle
Re: Android action bar can't be seen by the Ranorex Spy
I don't see a node with 'MobileApp AndroidOS' after setting Android OS Automation = True.
can you please help me why it is not showing?
Here is the scapshot of my application screen
can you please help me why it is not showing?
Here is the scapshot of my application screen
You do not have the required permissions to view the files attached to this post.
Re: Android action bar can't be seen by the Ranorex Spy
Hello thilina,
Is this on every version of Android or just on 4.4.3?
There is supposed to be an additional action bar on the top, above "delivery scan"?
Could you also send a snapshot with "Android OS Automation = False"?
Regards,
McTurtle
Is this on every version of Android or just on 4.4.3?
There is supposed to be an additional action bar on the top, above "delivery scan"?
Could you also send a snapshot with "Android OS Automation = False"?
Regards,
McTurtle
You do not have the required permissions to view the files attached to this post.
Re: Android action bar can't be seen by the Ranorex Spy
1. I tried only with 4.4.3McTurtle wrote:Hello thilina,
1. Is this on every version of Android or just on 4.4.3?
2. There is supposed to be an additional action bar on the top, above "delivery scan"?
3. Could you also send a snapshot with "Android OS Automation = False"?
Regards,
McTurtle
2. that is the action bar i'm referring to
3. attached
You do not have the required permissions to view the files attached to this post.
Re: Android action bar can't be seen by the Ranorex Spy
i tried with Android 5.0.1 still the same. not possible to click that button from Ranorex
Re: Android action bar can't be seen by the Ranorex Spy
Hi,
I'm afraid, without seeing your APK, there is not much anyone here can do. I would suggest to send the APK to Ranorex folks, so they can inspect it and possibly provide a reasonable suggestion.
I'm afraid, without seeing your APK, there is not much anyone here can do. I would suggest to send the APK to Ranorex folks, so they can inspect it and possibly provide a reasonable suggestion.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Android action bar can't be seen by the Ranorex Spy
i can send the APK to Ranorex support, can you PM an E-mail address to send it.
Re: Android action bar can't be seen by the Ranorex Spy
Hi, I already PMed you their address Here it is again... [email protected]
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Android action bar can't be seen by the Ranorex Spy
Hello thilina,
I agree with odklizec, you should send us an email with the APK to the following address [email protected].
Please describe the issue in the ticket once more and don't forget to add the customer ID.
We are looking forward to your email.
Sincerely,
Tomaž
I agree with odklizec, you should send us an email with the APK to the following address [email protected].
Please describe the issue in the ticket once more and don't forget to add the customer ID.
We are looking forward to your email.
Sincerely,
Tomaž
Re: Android action bar can't be seen by the Ranorex Spy
sent the apk to support, and waiting for reply