send_keys to iOS input password element XCUIElementTypeSecureTextField is not working
See original GitHub issueThe problem
In general I am able to enter text to XCUIElementTypeTextField with no problem, my issues begin with password elements from type XCUIElementTypeSecureTextField.
This is what I have being trying (Python syntax):
ActionChains(self.__driver).send_keys_to_element(element, text).perform()
ActionChains(self.__driver).move_to_element(element).send_keys(text).perform()
ActionChains(self.__driver).send_keys(text).perform()
, I called this after performingelement.click()
element.send_keys(text)
self.__driver.switch_to.active_element.send_keys(text)
Environment
- Appium version (or git revision) that exhibits the issue:
1.18.3
- Last Appium version that did not exhibit the issue (if applicable): Never tried with
ionic
apps - Desktop OS/version used to run Appium: Mac OS Big Sur
11.4
- Node.js version (unless using Appium.app|exe):
v12.9.1
- Npm or Yarn package manager: npm
- Mobile platform/version under test: iOS
14.4
- Real device or emulator/simulator: real device
- Appium CLI or Appium.app|exe: cli
Details
provided in the description
Link to Appium logs
will provided as needed
Code To Reproduce Issue [ Good To Have ]
Each of the following is not working:
ActionChains(self.__driver).send_keys_to_element(element, text).perform()
ActionChains(self.__driver).move_to_element(element).send_keys(text).perform()
ActionChains(self.__driver).send_keys(text).perform()
, I called this after performingelement.click()
element.send_keys(text)
self.__driver.switch_to.active_element.send_keys(text)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Sendkeys(), Click() actions are not working for email field
Sendkeys (), Click() are not working for email field.But its working for password field. Please check the below code. and attached screenshot ...
Read more >Why can I not get past Username/Password/Login (Click)?
The screen has two text fields, a secure text field, and a button. I need to enter a base URL into the first...
Read more >sendKeys() not working in username/password editText fields
Appium(v1.2.0)/selendroid is unable to enter text to TextEdit fields in native part of app. I can see that cursor is going through all...
Read more >Appium Not Typing Keys On Password Field Python - ADocLib
I am trying to automate an android app using appium and python that app requires login sendkeys to email type input works fine....
Read more >how to enter text without using sendkeys() in appium
I am running a test on iOS using Appium on BrowserStack. The test tries to use a ... ENTER);. If that does not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t this there is much we could do there. We are just calling the corresponding XCTest APIs there. If these are not working then only Apple is capable of changing that behaviour. Also Appium 1.18 is out of date. Consider updating to the most recent version
Wow, amazing. You are 100% right here. I am indeed partially using Hebrew keyboard.
Thanks!