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

sendKeys Does Not Send Keys Completely IOS #20138

Closed
Rocky-04 opened this issue May 23, 2024 · 1 comment
Closed

sendKeys Does Not Send Keys Completely IOS #20138

Rocky-04 opened this issue May 23, 2024 · 1 comment
Labels
ThirdParty upstream problems XCUITest regarding xcuitest driver

Comments

@Rocky-04
Copy link

Description
The sendKeys function intermittently fails to send all the specified keys during automated typing tests. This issue occurs across various settings and on both simulators and real devices.

Steps to Reproduce

  • Configure the max_typing_frequency setting.
  • Run the typing test.
  • Observe the output string.

Expected Behavior
The typed string should match the expected result for the given max_typing_frequency setting.

Actual Behavior
The typed string misses some characters. This issue is consistent across different max_typing_frequency settings.

Environment Details

Simulator
Phone Name: iPhone SE
iOS Version: 17.2
XCUITest Version: 7.16.2

Real Device
Phone Name: iPhone 11 [5]
iOS Version: 16.3.1

Test Results:
Simulator: iPhone SE

1 test:
max_typing_frequency = 10
Expected: "1234567890qwertyuiop!@#%1234567890QWERTYUIOP1234"
Actual: "1234567890qwertyuiop!@#%1234567890QWERTYUIO1234"

1.txt
https://github.com/appium/appium/assets/105980453/02f068b0-9f8c-4afd-82c4-64ae5bb72808

2 test:
max_typing_frequency = 20
Expected: "1234567890qwertyuiop!@#%1234567890QWERTYUIOP1234"
Actual: "1234567890qwertyuiop!@#%134567890QWERTYUIOP1234"

2.txt
https://github.com/appium/appium/assets/105980453/44df9fd9-99cd-4072-8770-3d2b38b93a20

3 test:
max_typing_frequency = 30
Expected: "1234567890qwertyuiop!@#%1234567890QWERTYUIOP1234"
Actual: "1234567890wertyuiop!@#%1234567890QWERYUIOP1234"

3.txt
https://github.com/appium/appium/assets/105980453/d66a54b1-b88e-4c2f-93eb-b6190522ee67

4 test:
max_typing_frequency = 40
Expected: "1234567890qwertyuiop!@#%1234567890QWERTYUIOP1234"
Actual: "134567890qweryuiop!@#%1234567890QWERTYUIOP1234"

https://github.com/appium/appium/assets/105980453/1ffca9f8-727f-4221-9be2-d3c19871d442
4.txt

5 test:
max_typing_frequency = 50
Expected: "1234567890qwertyuiop!@#%1234567890QWERTYUIOP1234"
Actual: "1234567890qwertyuiop!@#%123456780QWERTYUIOP1234"

5.txt
https://github.com/appium/appium/assets/105980453/a088f8c5-ad61-49ce-8ff7-6efbb1437f00

6 test:
max_typing_frequency = 60
Expected: "1234567890qwertyuiop!@#%1234567890QWERTYUIOP1234"
Actual: "134567890qwertyuiop!@#%1234567890QWERTYUIOP1234"

6.txt
https://github.com/appium/appium/assets/105980453/dc4a75b5-db06-43e0-b07b-d1201832d57d

7 test:
max_typing_frequency = 70
Expected: "1234567890qwertyuiop!@#%1234567890QWERTYUIOP1234"
Actual: "134567890qwertyuiop!@#%1234567890QWERTYUIOP1234"

https://github.com/appium/appium/assets/105980453/74d63c0f-ad26-438b-80dd-d796ed73b3ad
7.txt

Real Device: iPhone 11 [5]
8 test:
max_typing_frequency = 60
Expected: "1234567890qwertyuiop!@#%1234567890QWERTYUIOP1234"
Actual: "1234567890qwertyuiop!@#%1234567890QWERYUIOP1234"

real_device.txt
https://github.com/appium/appium/assets/105980453/82ff4a7c-b42e-4f1e-93a7-2f9ac7fccaf5

Attachments
Appium logs.
Video recordings of the issue.

Additional Support
I am available to conduct additional tests with any necessary settings and provide corresponding logs and videos from these tests to help diagnose and resolve the issue.

@mykola-mokhnach
Copy link
Collaborator

This behaviour is completely under control of XCTest. WDA simply uses appropriate APIs and for us it is merely a black box. Consider reporting the issue to Apple.

@mykola-mokhnach mykola-mokhnach added ThirdParty upstream problems XCUITest regarding xcuitest driver labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ThirdParty upstream problems XCUITest regarding xcuitest driver
Projects
None yet
Development

No branches or pull requests

2 participants