InvalidElementStateError in iOS React native application

Hi,

@Aleksei

I’m getting below exception while try to send a text over a text area.

Encountered internal error running command: InvalidElementStateError: Error Domain=com.facebook.WebDriverAgent Code=1 “‘”compose_subject_textinput” StaticText’ is not ready for a text input. Neither the accessibility element itself nor its accessible descendants have the input focus” UserInfo={NSLocalizedDescription=‘“compose_subject_textinput” StaticText’ is not ready for a text input. Neither the accessibility element itself nor its accessible descendants have the input focus}

Used SetValue and Sendkeys function to populate the text. But none of the function worked. Why am I getting the 'InvalidElementStateError: Error Domain=com.facebook.WebDriverAgent Code=1 ’ this error?

  1. wrong element
  2. sometimes it is needed tap before
  3. very sometimes it need tap -> then find element input (it appears only after tap)

Try the most recent server version