Appium not getting foreground screen elements only background screen elements

I am trying to automate ios app using iphone xr with ios 13, this ios has a functionality that sub screens appear on top on parent screen, (to say it in some way), what happens is that appium gets the xml of the screen underneath the screen with the current focus,

look at the attached screenshot, my app is similar, as you can see there is a screen below the current screen.

What can i do about it?

it is iOS which can see not only screen in background but also elements outside screen.

I did not understand sir, so what can we do about it?

Which appium version are you facing this issue ?

you should see all elements of background and foreground screens. what problem you have?

1.15.1
According to me that is the latest appium desktop version? isnt it? i know there is 1.17 but not for the appium desktop

i do not get the elements in foreground screen

try to check it logging “driver.getPageSource()”

1 Like

Give a try on 1.17.0 beta appium desktop version. You should be able to see all th elments.

1 Like
1 Like