Press Keys not working on ios devices

I couldn’t able to use Press Keys to Tab or Enter on any input field. Throwing below error message

Scenario is I am entering a value in the locator and then need to TAB. Value is entering but not tabbing

The element identified by “locator xpath” is either not present or it has expired from the internal cache. Try to find it again

Anyone faced this issue? Any solution for this?

So it is possible to type the value at locator, but then it fails because the locator is no longer valid. This suggests for you to study what is the locator after the successful typing of the value.

Even if I TAB without entering the value also same error message. It’s happening only ios. I verifed in devtools I don’t see any change in xpath

This is the problem of missing information, from your question. I assumed you were talking about Web testing with SeleniumLibrary, but it seems you are using AppiumLibrary whith XCUITest (iOS).

I “think” :trade_mark: that iOS automation has some problems with keys input.

I am using only SeleniuLibrary not appium

But you are using an iPhone. What browser? Chrome? Safari?
Does the iPhone have the TAB key?

iPhone - Safari. Also tried enter key