appium-desktop icon indicating copy to clipboard operation
appium-desktop copied to clipboard

Interactions Are Not Available For This Element On IOS Appium

Open dragon11111 opened this issue 5 years ago • 8 comments

The problem

On IOS Appium when trying to inspect element, the window shows "interactions are not available for this element", when I was trying to click "Tap" that button on the window but it did not work. Could you please help me on this?

Environment

Appium version : v.1.15.1 Desktop OS/version used to run Appium: macOS Mojava Version 10.14.4 Node.js version (unless using Appium.app|exe): v10.16.3 Npm or Yarn package manager: 6.11.3 Mobile platform/version under test: IOS 11.4.1 Real device or emulator/simulator: Real device iphone 7 Appium CLI or Appium.app|exe: Appium desktop

Thank you so much!

dragon11111 avatar Nov 06 '19 21:11 dragon11111

Hello,

Did you have any answers to this problem?

Thanks in advance.

Mbachacou avatar Dec 17 '19 13:12 Mbachacou

You can try out via script directly instead of Appium Desktop's GUI actions. I mean find_element the element => click it in JS/Python/Ruby etc. If the click action did not work by it, Appium cannot do such actions for it. (Expected behaviour as Appium)

If the element area had overwrapped other elements, AD cannot interact with them well.

KazuCocoa avatar Dec 18 '19 00:12 KazuCocoa

Hello,

Ok thank you but I am already using a script to interact with my application.

But before being able to do it via a script, I will manually search for the xpaths I need and for that it is very convenient to interact via appium desktop to test if the xpaths work.

Does it mean that the interaction functionality on appium desktop has been removed and will no longer be possible?

Mbachacou avatar Dec 18 '19 08:12 Mbachacou

Does it mean...

No. I forgot the details for now, but Appium checks 'enable', 'clickable'? or some attributes to enable/disable tap/send_key action button on the GUI. So, it depends on your elements, but it potentially could happen other hidden elements on your app overlap your target element. (We have not removed/changed the check/interaction logic for a while.)

KazuCocoa avatar Dec 18 '19 10:12 KazuCocoa

In my case, not only click but also visibilityOfElementLocated fails, only option I've left is to use getLoaction and TouchAction to tap on element Like: new TouchAction(driver).tap(PointOption.point(driver.findElement(element).getLocation())) .perform();

LightStein avatar Jan 16 '20 09:01 LightStein

Provide more detail of this.. As in my case when there is interaction not available we can open. a tree structure in appium inspector , as the specific element will not interact but there will be that specific element path that will interact . provide more information or screenshot

rolikachamyal avatar May 19 '21 17:05 rolikachamyal

image

I have the same issue, only one part in the screen (payment information) is not clickable at all. In the real device or emulator it is fine. By tapping the element for the first time nothing happens and for the second time, the error in the picture is displayed. (.... Do not exist in DOM). Do you think is it because the element area had overwrapped other elements?

T61Z8T3 avatar Dec 17 '21 09:12 T61Z8T3

You can try by creating your own xpath if not tried, or might be developer might have set some criteria like disabled something and other thing please make sure that xcode version that developer are using you are working on the same or does the library they are using support lower version of xcode

rolikachamyal avatar Dec 17 '21 15:12 rolikachamyal

Hello, What can cause this problem and is there any solution for this? image

YahyoMahmudov avatar Nov 24 '22 11:11 YahyoMahmudov

the inspector has moved to another repo.

jlipps avatar Nov 28 '22 19:11 jlipps