Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UFT Mobile recognize MobileLabel
#1
Not Solved
Hi,

I'm using UFT 12.52 Mobile to automate an Android application. I'm trying to obtain the text value of a MobileLabel object, but UFT doesn't recognize it. This are the properties of the object:

"Class Name:=MobileLabel",
"accessibilityid:=",
"bottom:=581",
"class:=Label",
"container:=",
"hint:=",
"ischeckable:=False",
"ischecked:=",
"isclickable:=False",
"isenabled:=True",
"isfocusable:=False",
"isfocused:=False",
"left:=742",
"mcindex:=69",
"nativeclass:=android\.support\.v7\.widget\.AppCompatTextView",
"resourceid:=component_key_text_number_tv",
"right:=776",
"text:=48",
"top:=530"


The only parameters that can be used are: micclass, class, mcindex, nativeclass, resourceid and text. I can't use text because it changes randomly and I don't want to use micclass because this object can be in very different Views, so, the only items that can be used are: micclass, class, nativeclass and resourceid, but, if I use them, UFT doesn't found the item.

To get the text value I user the command lines:

Set objDesc = Description.Create
objDesc("micclass").Value = "MobileLabel"
objDesc("class").Value = "Label"
objDesc("nativeclass").Value = "android.support.v7.widget.AppCompatTextView"
objDesc("resourceid").Value = "component_key_text_number_tv"

Device(...).App(...).MobileObject(objDesc).GetROProperty("text")

What can I do?
With Description.Create can I use an empty parameters? Like accessibilityid? Or container? How?
I have to change the search method of the objects? I see that ChildObjects is not available for UFT Mobile? Is there any other option?

Thanks,
Reply
#2
Not Solved
i am trying to install android environment can you guide me how to do that
Reply
#3
Not Solved
We are using real devices connected with HP Mobile Center, we aren't using OS simulations.
Reply
#4
Not Solved
thank i am using other software for mobile automation
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation UFT doesn't recognize object in SAP at first, but recognize it after i click debug CedricMab 3 6,777 02-06-2017, 07:09 PM
Last Post: nguyen4685
  UFT does not recognize IE9 download bar akilamurugesh 1 3,626 02-11-2015, 08:43 PM
Last Post: Kirill
  Scripting listbox select issue for QTP Mobile. PDAautomator 1 5,402 01-14-2011, 08:07 PM
Last Post: amitspandey
  Mobile Automation upadhyay40 4 3,477 12-14-2009, 09:34 AM
Last Post: upadhyay40

Forum Jump:


Users browsing this thread: 1 Guest(s)