-
Notifications
You must be signed in to change notification settings - Fork 2
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
Textfield.typeText occasionally inputs wrong value #29
Comments
Hi Dan, thanks for reaching out.
If that doesn't work, there is some logging that you can turn on to see what's going on. Check out this section on logging in the util: https://github.com/detroit-labs/katalon-mobile-util#logging If you can send me that log file, it might help troubleshoot further.
|
Hi Dan, thanks for the details! Sorry if I missed this part, but have you tried creating the TestObject from In the meantime, I'll look into ways to add more debugging to the calls you're trying, so we can log out what's going on. |
Hi Chris |
Glad to hear it, Dan!
|
Hi Chris
firstly, fantastic addition for Mobile testing, this has saved me a lot of hassle.
I have an issue where value entered from 'typeText' does not always match expected result though.
This result is not consistent - I would say about 20% of the time today it has given wrong result (I did restart mobile phone by the way).
My element by xpath is '//android.view.ViewGroup[@content-desc="Have previous survey details been reviewed?"]/android.view.View'.
I use the following code (I cannot implement your object repository layout with this project):
TestObject havePrevSurveys = findTestObject('SummaryPage/txtHavePreviousSurveysBeenReviewed')
TextField.typeText(havePrevSurveys, reviewPreviousSurveys, 0).
The variable 'reviewPreviousSurveys' takes a value of 'Yes'. For this example the picker has values of blank, Yes and No. Sometimes it skips past Yes to next value. I have also tried a delay of 2 seconds before this step. The element is clearly on the screen.
Would appreciate any advice. In the meantime I will repeat the step with If statement if I see an odd result.
Regards
Dan
The text was updated successfully, but these errors were encountered: