Why does the Mobile Spy is capturing the 'Content-desc' in one device and 'text' on other device

I tried to capture the same object in 2 mobile device and found that Mobile Spy is capturing the ‘Content-desc’ in one device and ‘text’ on other device .

Only Property is changing but property value is same . Why is this property name is changing for same object . i could not able to run the test in other device since the property name change .

Please suggest .

1 Like

I have same problem. I am trying to modify basic selector editor, but it is disabled.

Finally I verified object existance with try…cahch

def btl = findTestObject(‘BtnTryLogin’)

def btnLoginExists = false

try {

btnLoginExists = Mobile._verifyElementExist_(btl, 10)

}

catch (e) { }

if (btnLoginExists) {

Mobile.tap(findTestObject(‘BtnTryLogin’), 10)

}

else {

Mobile.tap(findTestObject(‘BtnTryLogin2’), 10)

}

Hi Han Ho ,

Thanks for you response . Your Approach seems to be working fine .
just for clarification :

You mean to say that we need to stored the same object twice(once with text property and other with Content-decs . I.e BtnTryLogin and BtnTryLogin2. ) and then verify the existence of the the correct one .

Correct me …