Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typeText method is not working #326

Closed
Chrys123 opened this issue Oct 10, 2017 · 4 comments
Closed

typeText method is not working #326

Chrys123 opened this issue Oct 10, 2017 · 4 comments

Comments

@Chrys123
Copy link

Hi. am trying to type text on an input field, but it does not seem to be working on the app.

Thats the error stack trace:

Error: Error: An action failed. Please refer to the error trace below.
Exception with Action: {
"Action Name" : "Type '[email protected]'",
"Element Matcher" : "(((((respondsToSelector(isAccessibilityElement) && isAccessibilityElement) && accessibilityLabel('Email address')) && !(descendantThatMatches((kindOfClass('RCTText') && ((respondsToSelector(isAccessibilityElement) && isAccessibilityElement) && accessibilityLabel('Email address')))))) && !(kindOfClass('RCTScrollView'))) || (kindOfClass('UIScrollView') && ((kindOfClass('UIView') || respondsToSelector(accessibilityContainer)) && ancestorThatMatches(((((respondsToSelector(isAccessibilityElement) && isAccessibilityElement) && accessibilityLabel('Email address')) && !(descendantThatMatches((kindOfClass('RCTText') && ((respondsToSelector(isAccessibilityElement) && isAccessibilityElement) && accessibilityLabel('Email address')))))) && kindOfClass('RCTScrollView'))))))"
}

Error Trace: [
{
"Description" : "Keyboard did not appear after tapping on element [E]. Are you sure that tapping on this element will bring up the keyboard?",
"Description Glossary" : {
"E" : "<RCTText:0x7fbb3872f0a0; AX=Y; AX.label='Email address'; AX.frame={{16, 128}, {79, 14.5}}; AX.activationPoint={55.5, 135.25}; AX.traits='UIAccessibilityTraitStaticText'; AX.focused='N'; frame={{0, 0}, {79, 14.5}}; alpha=1>"
},
"Error Domain" : "com.google.earlgrey.ElementInteractionErrorDomain",
"Error Code" : "2",
"File Name" : "GREYActions.m",
"Function Name" : "+[GREYActions grey_actionForTypeText:atUITextPosition:]_block_invoke",
"Line" : "579"
}
]

@LeoNatan
Copy link
Contributor

This issue has been discussed many times in the past. Please use search before opening more issues.

You need to make sure keyboard appears when a text field is first responder. They easiest way is to disable hardware keyboard in the simulator menu.

@Chrys123
Copy link
Author

What do you mean to disable the hardware keyboard menu please? Why is the issue happening?

@LeoNatan
Copy link
Contributor

Make sure this is disabled:
screen_shot_2015-06-24_at_2_55_27_pm

@Chrys123
Copy link
Author

Cool thanks i resolved the issue

@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants