Appium Tip #1 Forcing the retrieval of UI hierarchy on iOS

If appium can’t retrieve the element hierarchy on an iOS app for whatever reason, try one of these methods:

driver.executeScript("mobile: source", ImmutableMap.of("format", "description"));

driver.executeScript("mobile: source", ImmutableMap.of("format", "json"));

On your test code, this will return the source, although it mmight not be as neatly formated as the usual getSource(), sometimes that method doesn’t retrieve every element. This can be an useful workaround.

2024

Comparing AI Coding Assistants

7 minute read

In the rapidly evolving landscape of AI-powered coding assistants, developers are presented with a variety of options. But which tool truly stands out?

Back to Top ↑

2021

Back to Top ↑

2020

2020 What a year…

1 minute read

So what can I say that hasn’t been said about 2020? That it has been a great year so far! Wait, what? Yes, in retrospective and very selfishly it has been a ...

Game related youtube channels

2 minute read

For a month and two weeks now, I’ve been having less and less time to do much beside changing diapers. If I can squeeze a bit of time into my hobbies, I have...

Back to Top ↑

2019

Moving to linux at work

1 minute read

So I’ve been using Linux here and there for many many years, but never used it as a daily driver. On my current work, we use Linux machines a lot, both physi...

Back to Top ↑