Send Value is Appending Value two times intermittently on iOS 13.X Device
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 752
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 8
Description
Description
We have observed issue with Send Keys while typing the value in the Text Field on iOS 13.x Device. The same value is getting appended twice intermittently on the iOS Device.
I have analyzed the logs and observed that Java Client is calling Send Keys WDA API twice and value is getting appended.
Please find the attached logs and reference below for calling setvalue method in WDA two times.
2019-11-25 12:13:52:529 [HTTP] --> POST /wd/hub/session/8dfb2dee-80d0-4bd3-96f8-a7fadff92814/element/75000000-0000-0000-6701-000000000000/value
2019-11-25 12:13:52:530 [HTTP] {"id":"75000000-0000-0000-6701-000000000000","text":"9379020User@auto8.mobileiron.com","value":["9","3","7","9","0","2","0","U","s","e","r","@","a","u","t","o","8",".","m","o","b","i","l","e","i","r","o","n",".","c","o","m"]}
2019-11-25 12:13:52:530 [W3C (8dfb2dee)] Calling AppiumDriver.setValue() with args: [["9","3","7","9","0","2","0","U","s","e","r","@","a","u","t","o","8",".","m","o","b","i","l","e","i","r","o","n",".","c","o","m"],"75000000-0000-0000-6701-000000000000","8dfb2dee-80d0-4bd3-96f8-a7fadff92814"]
2019-11-25 12:13:52:530 [XCUITest] Executing command 'setValue'
2019-11-25 12:15:21:918 [WD Proxy] Got response with status 200: {"value":null,"sessionId":"C9D1A5D3-0D0A-4A14-9D1E-D29A3171F938"}
2019-11-25 12:15:21:919 [WD Proxy] Matched '/element/75000000-0000-0000-6701-000000000000/value' to command name 'setValue'
2019-11-25 12:15:21:919 [Protocol Converter] Added 'text' property "9379020User@auto8.mobileiron.com" to 'setValue' request body
2019-11-25 12:15:21:919 [WD Proxy] Proxying [POST /element/75000000-0000-0000-6701-000000000000/value] to [POST http://10.120.8.138:8100/session/C9D1A5D3-0D0A-4A14-9D1E-D29A3171F938/element/75000000-0000-0000-6701-000000000000/value] with body: {"value":["9","3","7","9","0","2","0","U","s","e","r","@","a","u","t","o","8",".","m","o","b","i","l","e","i","r","o","n",".","c","o","m"],"text":"9379020User@auto8.mobileiron.com"}
2019-11-25 12:15:21:920 [W3C (8dfb2dee)] Responding to client with driver.setValue() result: null
2019-11-25 12:23:52:510 [HTTP] <-- POST /wd/hub/session/8dfb2dee-80d0-4bd3-96f8-a7fadff92814/element/75000000-0000-0000-6701-000000000000/value - - ms - -
2019-11-25 12:23:52:510 [HTTP]
2019-11-25 12:23:52:511 [HTTP] --> POST /wd/hub/session/8dfb2dee-80d0-4bd3-96f8-a7fadff92814/element/75000000-0000-0000-6701-000000000000/value
2019-11-25 12:23:52:512 [HTTP] {"id":"75000000-0000-0000-6701-000000000000","text":"9379020User@auto8.mobileiron.com","value":["9","3","7","9","0","2","0","U","s","e","r","@","a","u","t","o","8",".","m","o","b","i","l","e","i","r","o","n",".","c","o","m"]}
2019-11-25 12:23:52:512 [W3C (8dfb2dee)] Calling AppiumDriver.setValue() with args: [["9","3","7","9","0","2","0","U","s","e","r","@","a","u","t","o","8",".","m","o","b","i","l","e","i","r","o","n",".","c","o","m"],"75000000-0000-0000-6701-000000000000","8dfb2dee-80d0-4bd3-96f8-a7fadff92814"]
2019-11-25 12:23:52:512 [XCUITest] Executing command 'setValue'
2019-11-25 12:28:11:455 [WD Proxy] Got response with status 200: {"value":null,"sessionId":"C9D1A5D3-0D0A-4A14-9D1E-D29A3171F938"}
2019-11-25 12:28:11:457 [WD Proxy] Matched '/element/75000000-0000-0000-6701-000000000000/value' to command name 'setValue'
2019-11-25 12:28:11:458 [Protocol Converter] Added 'text' property "9379020User@auto8.mobileiron.com" to 'setValue' request body
2019-11-25 12:28:11:458 [WD Proxy] Proxying [POST /element/75000000-0000-0000-6701-000000000000/value] to [POST http://10.120.8.138:8100/session/C9D1A5D3-0D0A-4A14-9D1E-D29A3171F938/element/75000000-0000-0000-6701-000000000000/value] with body: {"value":["9","3","7","9","0","2","0","U","s","e","r","@","a","u","t","o","8",".","m","o","b","i","l","e","i","r","o","n",".","c","o","m"],"text":"9379020User@auto8.mobileiron.com"}
2019-11-25 12:28:11:459 [W3C (8dfb2dee)] Responding to client with driver.setValue() result: null
Environment
- Java Client Version:7.0.0
- Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe:
- Mobile platform/version under test: iOS
- Real device : iOS 13.2 and iOS 13.3 Beta
Details
Please provide more details, if necessary.
Code To Reproduce Issue [ Good To Have ]
Please remember: it's easier to reproduce and fix the bug with sample code.
You can git clone https://github.com/appium/appium/tree/master/sample-code or https://github.com/appium/appium/tree/master/sample-code/apps and reproduce an issue using Java and sample apps.
Also you can create a gist with pasted java code sample or put it here using markdown. About markdown please read Mastering markdown and
Writing on GitHub
Exception Stacktraces
Please create a gist with the pasted stacktrace of the exception thrown by java.
Link To Appium Logs
Please create a gist which is a paste of your full Appium logs, and link them here. Do not paste your full Appium logs here, as it will make this issue very long and hard to read!
If you are reporting a bug, always include Appium logs as linked gists! It helps to define the problem correctly and clearly.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with Java Client 7.0.0 on a real iOS 13.2 or 13.3 device, using the Appium logs in the report to verify the request sequence. Trace the send-keys path that invokes the WDA setValue endpoint and confirm completion when one client action no longer causes the value to be appended twice.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, java
- Domain
- mobile, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100