mercredi 20 décembre 2017

Detox - Can't locate the element on the screen

screen

I tried to resolve the issue of Detox - Enter on Numpad and thus leading to this issue.

According to the screen, I have an input field with number. So there is no enter key or typeText '\n' to enter it. So I think of the solution to tap on the header to hide the keyboard. However, even though the header is there. with the testID = {..._screen_header_}

It still give me an error of

"Recovery Suggestion" : "Check if the element exists in the UI hierarchy printed below. If it exists, adjust the matcher so that it accurately matches element." }

   Error Trace: [
     {
       "Description" : "Interaction cannot continue because the desired element was not found.",
       "Error Domain" : "com.google.earlgrey.ElementInteractionErrorDomain",
       "Error Code" : "0",
       "File Name" : "GREYElementInteraction.m",
       "Function Name" : "-[GREYElementInteraction matchedElementsWithTimeout:error:]",
       "Line" : "124"
     }
   ]

Can you clarify is this stackOverflow issue or bugs from the framework? That would be helpful. thanks

Steps to Reproduce just have a header or any element, because this issue happens at one place that it couldn't locate the screen as well. Which means the detox framework couldn't locate the item.

Detox, Node, Device, Xcode and macOS Versions Detox: 5.10 Node: 8.7.0 Device: iPhone 7 Xcode: 9.1 macOS: 10.13.2

Aucun commentaire:

Enregistrer un commentaire