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

onChange event doesn't fire while trying to type value in input using Appium (IOS) #10347

Closed
ikhilko opened this issue Aug 2, 2017 · 4 comments

Comments

@ikhilko
Copy link

ikhilko commented Aug 2, 2017

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

onChange event doesn't fire while trying to type value in input using Appium (type value programmatically)

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/84v837e9/).

Also tried on Android - work fine. Only relates IOS.

What is the expected behavior?

onChange event should be fired while trying to type value in input using Appium

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

React since 15.6.0 and up (15.5.4 works fine), iPhone 6s (IOS 10.3.2), Appium 1.6.5

@ikhilko ikhilko changed the title onChange event doesn't fire while trying to type value in input using Appium onChange event doesn't fire while trying to type value in input using Appium (IOS) Aug 2, 2017
@aweary
Copy link
Contributor

aweary commented Aug 8, 2017

Hey, @ikhilko! Thanks for the issue. Appium is probably setting the value by setting the value property on the input element. This won't work with React's controlled input implementation. I would recommend referring to Appium's documentation to see if there's a way to ensure actual keyboard events are being dispatched, or opening an issue in their issue tracker if not.

@aweary aweary closed this as completed Aug 8, 2017
@ikhilko
Copy link
Author

ikhilko commented Aug 9, 2017

Hi, @aweary! Thanks for your response. Appium (and Selenium itself) use more complex logic to input value to the inputs. I will try investigate what they execute at that case. But it's very strange that that logic works fine on Android (Chrome), but doesn't work at IOS using React. Can you refer some information about how React works with controlled inputs? It will be very helpful in my research of this problem.

@ikhilko
Copy link
Author

ikhilko commented Aug 9, 2017

Looks like the same reason as issues #10135 and cypress-io/cypress#536

@pkgondi
Copy link

pkgondi commented Sep 10, 2018

@ikhilko: I'm facing same issue, did you get any solution for this issue.
Thank you
Kumar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants