question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

send_keys to iOS input password element XCUIElementTypeSecureTextField is not working

See original GitHub issue

The 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 performing element.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 performing element.click()
  • element.send_keys(text)
  • self.__driver.switch_to.active_element.send_keys(text)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Jul 20, 2021

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

0reactions
bwomsm1commented, Jul 25, 2021

Wow, amazing. You are 100% right here. I am indeed partially using Hebrew keyboard.

Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found