Forum Discussion

vikram_u_k's avatar
vikram_u_k
Contributor
7 years ago

Android FindAll JScript Example

Hi We are using TC12 I am aware of the FindAllChildren example for searching objects 

Searching Objects

var arr = Sys.Process("calc").FindAllChildren("wChecked", true, 4).toArray();

 

Could someone help with an example to get the list of all TextView Objects instead of Buttons as in the Example>

FindAll Buttons

 

Current Layout we have

 

Device = Mobile.Device("Mobile").Process("com.test.myapp")

VitalBlock = RootLayout.Layout("maincontainer").Layout("layout").Layout("NO_ID")

LabelArea = VitalBlock.Layout("leftcontainer").Layout("top_container")

SpecificLabel  = LabelArea.TextView("item1")

 

 

 

Could someone explain how to get the List of all SpecificLabels in this layout.

TestObj.FindAll(PropNamesPropValuesDepthRefresh)

 

Could someone clarify the type of PropValues and PropNames?

 

No RepliesBe the first to reply