Hybrid iOS app automation

Hi,
I am trying to automate a hybrid iOS app using MDM but not able to generate selectors for the web elements inside the app.
I am able to identify each web elements but the below error is raised whenever I try to tap on it.

Did anyone experience the same and is there any option to automate the hybrid mobile applications?

Thanks,
Praga

Hello @Praga ,

From my side, I tried once using MDM but I was not able to configure it, for an Android phone.
i automated an android application by using uipath + anydesk. Logged remotely, after that using click image to navigate through the application.

My answer might be offtopic, but just sharing, might help.

Vasile.

@Praga are you able to solve the same issue as i am able to do the android automation but face error during the IOS automation setup using .IPA file. Please assist if you have any solution

Hi Chetan,
Unfortunately, I am also not able to resolve the issue and my organisation decided not to automate hybrid scenarios.
Thanks

@Chetan_Gandhi can you please provide more info?

  • On what are you testing simulator/real_device?
  • What version of appium are you using?
  • What platform version are you targetting?
  • What version of MobileAutomation activities?
  • Is the error manifesting on a simple website? (eg. Buttons · Bootstrap)
  • Can you reproduce the error on our multicontext app
  • Any other detail that you might feel is important?

Hi Cristian, We are facing same issue and not able to resolve it, getting below error:

Error Log-
"The UI object is invalid. Make sure the target application is open.
Invalid selector . Invalid selector. Supported selectors are native (mbl) or web (html, webctrl)."

  • We are testing on Mobile Center Devices (real devices on Cloud).
  • Appium Version - v2beta40
  • iOS v15 and above.
  • UiPath.MobileAutomation.Activities=24.2.0 -preview
  • We are observing this error on single page.

Could you please help us on this with any info.

Hi vivek

Unfortunately this is not an easy one to answer, without having a specific reproduction scenario. I offered some other answers (to similar or tangential issues, not sure if the issues match 100% with yours) in other posts and I’ll list them here in case they might prove useful.

  1. If you’re trying to get a selector into a web page, maybe you can use UiExplorer to achieve this, or craft the selector by hand using the visual tree.
  2. If the selector you’re using is given by MDM, then something is not right. MDM should offer correct selectors.
  3. You can try to see if you can get a selector to somewhere in the page and if the element you want to click (this works for click only) is relative to it, you can use click with offset.
  4. You can try using computer vision if nothing else works.

Hope this helps!
Cristian

1 Like

Hi Cristian,

Thanks for the valuable suggestions.

In My scenario I was not able to access even Visual Tree and recording was not working. Nore UiExplorer was able to fetch elements.

In other way my issue is resolved now. I tried to created elements manually from Object repository, from there I tried to identify the elements and finally I did able to inspect the elements using “Use Native Selector in WebView (F4) options.

1 Like