PaoloD
New Member.
342 views

MC ClickOnText doesn't work for iOS

I have tried the command Device("Device").ClickOnText "myText" for some apps, but unfortunately it seems to work just for Android, instead in iOS the text is just selected and not clicked (e.g.: for button "Continue" in iOS is selected the text, instead in Android it performs a click and goes to next page).

How to fix it?

Thank you.  

0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert

Re: MC ClickOnText doesn't work for iOS

Hi,

Please note that ClickOnText depends on UFT's OCR mechanism. 

If the text is selected, this means that OCR mechanism recognize it, however there is no listener for press on the text (means, it is not implemented on iOS by app developer). 

Instead of ClickOnText, you can use Object.Click functinatliy and eliminate a need in OCR.

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.