-
Notifications
You must be signed in to change notification settings - Fork 617
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
webview issues with calabash android - after having this keyboard_enter_text(text) steps are skipped #903
Comments
You just need to confirm that you are in the webview context, you may not
be.
…On Thu, 15 Nov 2018 at 14:46, prabhudorairaj85 ***@***.***> wrote:
I have a webview test which looks like this
steps def are looking like this
touch("webView css:'INPUT#username'")
keyboard_enter_text("username")
sleep 3
press_back_button
wait_for_element_exists("webView css:'INPUT#password'")
sleep 3
touch("webView css:'INPUT#password'")
keyboard_enter_text("password")
sleep 2
press_back_button
touch("webView css:'BUTTON'")
sleep 4
wait_for_element_exists("* marked:'subscription_chooser_item_name'")
when the test are made
after the execution , keyboard_enter_text("username"), the steps after
that are skipped always.
can anyone help with this issue
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#903>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AENzWF1bUHeGCVeKlPRslqHeb3lbRMpYks5uvX43gaJpZM4Yf8HZ>
.
|
@prabhudorairaj85 Yes. Please make sure that your context is correct and please provide calabash-android version and where you trying to start tests (emalator/some device). |
thanks @AndreyMitsyk , i am using the lates calabash version 0.9.8 and trying to run on android devices. |
@prabhudorairaj85 Could you please send adb logs from device?
Which android device you are using and which Android version do you have on this device? |
@AndreyMitsyk android version is 6.0.1 and samsung s5 11-15 16:42:55.562 2413 2413 D PanelView: kidsfalse mQsExpansionEnabled:true |
|
@sherbhachu just to your context, since i made a keyoard_enter_text, you say that i may be in hardware side, and do you know how to come back to the webview page |
@AndreyMitsyk may be this could help 11-15 16:51:57.652 3262 3262 I System.out: File copied from /data/user/0/com.sec.android.inputmethod/app_SwiftKey/en_GB-live/.config to /storage/emulated/0/Android/data/com.sec.android.inputmethod/cache/en_GB-live/.config |
@prabhudorairaj85 Could you please try to find some errors with "calaba" prefix in adb logs? |
@AndreyMitsyk : i tried with android version 8. the test seems to going through when executed via can you help to fix this |
@AndreyMitsyk i also tried in motoG5, with android v8.1.0. i face the same issue.can you help me solve this |
@prabhudorairaj85 Sorry for delay. I can't investigate issue on my local machine right now. Hopefully I will do this by the end of this week. Anyway I thinking about
|
@AndreyMitsyk : yes its still a issue , even though i removed the sleep . |
@prabhudorairaj85 I can't repro this with Android 9 device and sample app with webview. |
@AndreyMitsyk as i said earlier , from android 8 and above , it works better but version lesser than that or not working . |
@prabhudorairaj85 in this case new webview input logic can fix issue at least for android 6+ devices. Right now it's active only for latest versions: |
@AndreyMitsyk : thank you. just let me know when you release a fix for this new webview input logic. |
I am afraid, I don't have an opinion. Make a pull request on the server to change the version and we will see if it gets picked up. |
I have a webview test which looks like this
steps def are looking like this
touch("webView css:'INPUT#username'")
keyboard_enter_text("username")
sleep 3
press_back_button
wait_for_element_exists("webView css:'INPUT#password'")
sleep 3
touch("webView css:'INPUT#password'")
keyboard_enter_text("password")
sleep 2
press_back_button
touch("webView css:'BUTTON'")
sleep 4
wait_for_element_exists("* marked:'subscription_chooser_item_name'")
when the test are made
after the execution , keyboard_enter_text("username"), the steps after that are skipped always.
can anyone help with this issue
The text was updated successfully, but these errors were encountered: