# iOS - Strong password cover text intermittently breaking tests

**URL:** <https://discuss.appium.io/t/ios-strong-password-cover-text-intermittently-breaking-tests/41110>\
**Category:** Issues/Bugs\
**Created:** [December 15, 2023, 11:08am UTC](https://discuss.appium.io/t/ios-strong-password-cover-text-intermittently-breaking-tests/41110 "2023-12-15T11:08:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_QA](https://discuss.appium.io/user_avatar/discuss.appium.io/chris_qa/32/9892_2.png) [@Chris\_QA](https://discuss.appium.io/u/Chris_QA)\
**Post date:** [December 15, 2023, 11:08am UTC](https://discuss.appium.io/t/ios-strong-password-cover-text-intermittently-breaking-tests/41110/1 "2023-12-15T11:08:16Z")

</div>

Hey everyone,

Running into a bit of a headache with iOS. I’m using [webdriver.io](http://webdriver.io) with appium. This happens once every 30 tests and just fixes itself on the retry. Once it enters the password into the field it comes up with this strong password cover which then bugs out the password field, since it for some reason thinks that there are less than 6 characters in the field.

Has anyone run into this kind of issue? This never happens when manually testing the app so I’m not sure if this is an issue with the app or an issue with appium itself. I’ve tried using both setValue and addValue. As well as tapping the field into focus before entering the password. Still, this intermittently happens. (Running on iOS Simulator, latest XCode version).

![17](https://discuss.appium.io/uploads/default/original/2X/4/4cb930fb3e702816775a2446bb12d8c28fbb5408.png)

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [December 15, 2023, 11:46am UTC](https://discuss.appium.io/t/ios-strong-password-cover-text-intermittently-breaking-tests/41110/2 "2023-12-15T11:46:16Z")

</div>

how you enter text into this field?

try logic as user:

- tap on password input
- send text with keyboard

```auto
// Java
new Actions(driver).sendKeys(text).perform();

```

Quite often sendKeys to element does not work correctly. Much depends on how app written.

---

<div class="post-metadata">

**Author:** ![Chris\_QA](https://discuss.appium.io/user_avatar/discuss.appium.io/chris_qa/32/9892_2.png) [@Chris\_QA](https://discuss.appium.io/u/Chris_QA)\
**Post date:** [December 18, 2023, 3:01pm UTC](https://discuss.appium.io/t/ios-strong-password-cover-text-intermittently-breaking-tests/41110/3 "2023-12-18T15:01:46Z")

</div>

Hey Aleksei, thanks for your reply.

I’ve tried doing this way too and still get this strong password cover text. Not sure how else to get round this. It seems to always happen when its a fresh simulator session.

---

<div class="post-metadata">

**Author:** ![tkd](https://discuss.appium.io/user_avatar/discuss.appium.io/tkd/32/12600_2.png) [@tkd](https://discuss.appium.io/u/tkd)\
**Post date:** [February 27, 2024, 8:47pm UTC](https://discuss.appium.io/t/ios-strong-password-cover-text-intermittently-breaking-tests/41110/4 "2024-02-27T20:47:20Z")

</div>

I am having this problem too. I’m using an iPhone 15 Pro, iOS 17.2 simulator.

I set the password field using:

```auto
const value = 'MyFakePassword123'
await buttonElement.addValue(value);

```

and it displays:

 ![image](https://discuss.appium.io/uploads/default/original/2X/5/5d6aa273965b61c34c53d792883abafdefac2890.png)

When I try to get the value right afterwards using

```auto
await buttonElement.getValue();

```

it prints out “•” and I am unable to submit the form because it thinks that the password is too short.

Thanks for any help with this!

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [February 28, 2024, 6:20am UTC](https://discuss.appium.io/t/ios-strong-password-cover-text-intermittently-breaking-tests/41110/5 "2024-02-28T06:20:02Z")

</div>

As usual type with keyboard! Do not use set value here.

---

<div class="post-metadata">

**Author:** ![tkd](https://discuss.appium.io/user_avatar/discuss.appium.io/tkd/32/12600_2.png) [@tkd](https://discuss.appium.io/u/tkd)\
**Post date:** [March 4, 2024, 3:53pm UTC](https://discuss.appium.io/t/ios-strong-password-cover-text-intermittently-breaking-tests/41110/6 "2024-03-04T15:53:57Z")

</div>

Thanks Aleksei, can you please explain what you mean by “type with keyboard”? I’m trying to automate this, not do it manually.

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [March 4, 2024, 4:01pm UTC](https://discuss.appium.io/t/ios-strong-password-cover-text-intermittently-breaking-tests/41110/7 "2024-03-04T16:01:46Z")

</div>

> [@iOS - Strong password cover text intermittently breaking tests](https://discuss.appium.io/t/ios-strong-password-cover-text-intermittently-breaking-tests/41110/2):
>
> how you enter text into this field? try logic as user: tap on password input send text with keyboard // Java new Actions(driver).sendKeys(text).perform(); Quite often sendKeys to element does not work correctly. Much depends on how app written.

---

<div class="post-metadata">

**Author:** ![tkd](https://discuss.appium.io/user_avatar/discuss.appium.io/tkd/32/12600_2.png) [@tkd](https://discuss.appium.io/u/tkd)\
**Post date:** [April 4, 2024, 11:36pm UTC](https://discuss.appium.io/t/ios-strong-password-cover-text-intermittently-breaking-tests/41110/8 "2024-04-04T23:36:42Z")

</div>

Thanks Aleksei. Unfortunately this isn’t an option on JS, which is what I’m using. I still haven’t found a way around this.

---

<div class="post-metadata">

**Author:** ![Conrad\_Braam](https://discuss.appium.io/user_avatar/discuss.appium.io/conrad_braam/32/7031_2.png) [@Conrad\_Braam](https://discuss.appium.io/u/Conrad_Braam)\
**Post date:** [April 5, 2024, 8:51am UTC](https://discuss.appium.io/t/ios-strong-password-cover-text-intermittently-breaking-tests/41110/9 "2024-04-05T08:51:37Z")

</div>

Is the OS generating this “cover” or is the browser showing it?

---

<div class="post-metadata">

**Author:** ![Alex\_K](https://discuss.appium.io/user_avatar/discuss.appium.io/alex_k/32/12615_2.png) [@Alex\_K](https://discuss.appium.io/u/Alex_K)\
**Post date:** [April 28, 2024, 2:07pm UTC](https://discuss.appium.io/t/ios-strong-password-cover-text-intermittently-breaking-tests/41110/10 "2024-04-28T14:07:19Z")

</div>

Hello everyone! I’m experiencing the same issue on the iOS 17.4 Simulator. Interestingly, I’m encountering this problem on an iMac 24 macOS 14.4.1 with an Apple M3, but everything works fine on a Mac mini macOS 14.4.1 with an Apple M2 Pro. I’ve tried different platform versions, reinstalling Xcode, and copying the simulator from the Mac mini to the iMac, but none of these steps have helped.

---

<div class="post-metadata">

**Author:** ![Marco](https://discuss.appium.io/user_avatar/discuss.appium.io/marco/32/14105_2.png) [@Marco](https://discuss.appium.io/u/Marco)\
**Post date:** [March 25, 2025, 4:20pm UTC](https://discuss.appium.io/t/ios-strong-password-cover-text-intermittently-breaking-tests/41110/11 "2025-03-25T16:20:27Z")

</div>

I got this working on JS by tapping the input element first before filling in the password.

```auto
const value = 'MyFakePassword123'
await buttonElement.click()
await buttonElement.setValue(value);

```
