Comments (3)
WDA emulates pressing the backspace button on a virtual keyboard in order to speed up the cleanup of the text field:
https://github.com/appium/WebDriverAgent/blob/130352cc3151c71acb674861f1443af7035a9e35/WebDriverAgentLib/Categories/XCUIElement%2BFBTyping.m#L169
If that action crashes the app under test then it must be an issue with the app itself.
from appium.
closed as third party issue
from appium.
WDA emulates pressing the backspace button on a virtual keyboard in order to speed up the cleanup of the text field: https://github.com/appium/WebDriverAgent/blob/130352cc3151c71acb674861f1443af7035a9e35/WebDriverAgentLib/Categories/XCUIElement%2BFBTyping.m#L169
If that action crashes the app under test then it must be an issue with the app itself.
Thank you for the feedback.
Keyboard that appears on screen is a numeric keyboard, so I am not sure which button WDA tries to emulate resulting in crashing of app. For input validation purposes, our app does not allow to pass random inputs via keyboard from user and this might be the reason that app is crashing.
![Screenshot 2024-05-14 at 14 20 55](https://private-user-images.githubusercontent.com/62521743/330422775-48a7c350-bea6-42e5-8bb1-989734541858.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc4ODc3NzIsIm5iZiI6MTcxNzg4NzQ3MiwicGF0aCI6Ii82MjUyMTc0My8zMzA0MjI3NzUtNDhhN2MzNTAtYmVhNi00MmU1LThiYjEtOTg5NzM0NTQxODU4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjA4VDIyNTc1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc3NjhjYzc4Yzc0YTFlNjg3ZjEzZThhZjQyNTVjZjYwMDJiMDc5MGFlNmE2NmI5NWY5YjJkZGZlNzc2NTFkMzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.c2FcbQarawZDCMEK8210VDDsAlKH7HsiFRzgFWi2UHs)
As a workaround, I have managed to clear the input field by using this approach element.sendKeys(Keys.BACK_SPACE);
which works well. In my opinion, WDA should also look for the shown backspace button on screen to target it which should successfully clear input.
from appium.
Related Issues (20)
- Original error: No Chromedriver found that can automate Chrome '121.0.6167'. HOT 21
- [Feat]: Remove npmlog dependency because it's no longer supported
- [Feat]: Remove inflight dependency because it's no longer supported HOT 7
- when app starts and app home page comes, appium can only locate systemui, I need locate app home page HOT 2
- Original error: Unable to launch WebDriverAgent because of xcodebuild failure: Command 'carthage bootstrap --platform iOS' exited with code 1 HOT 4
- [Feat]: add company logo icons in SPONSORS.md HOT 5
- [Feat]: Support for JavaFX / Swing Desktop applications HOT 1
- iOS 17 always get driver-to-platform version mismatch on Real Devices HOT 6
- bug: iOS - XCUITest - WDA crash during parallel Appium automation HOT 6
- Appium 2.6.0 error: selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Cannot read properties of null (reading 'unpipe') HOT 4
- bug: Appium v2 does't install the newer version of the app package. HOT 4
- [Feat]: Appium to generate .gcov, .gcna, .gcda files for iOS apps code coverage HOT 2
- Appium can't reach elements in iOS source tree and it works fine in android (with the same codebase) HOT 2
- appium 2.7.0 runtime failure HOT 1
- [Feat]: release script update license in logger/package.json to Apache-2.0 from ISC
- [Feat]: document all API endpoints HOT 6
- Appium taking 10-15 minutes in switching to webview context and getting current url HOT 10
- [Feat]: use ~ for dependencies in appium main package instead of ^ HOT 9
- WebDriverAgent v8.7.2 cause Appium touch error HOT 1
- [Feat]:Setting GPS address and “Shake” cell phone function does not work. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appium.