# Native iOS : Element visible (when I see the execution video) but I can't click on it, I have an error message saying that the element is still not existing

**URL:** <https://discuss.appium.io/t/native-ios-element-visible-when-i-see-the-execution-video-but-i-cant-click-on-it-i-have-an-error-message-saying-that-the-element-is-still-not-existing/34893>\
**Category:** Issues/Bugs\
**Created:** [November 2, 2021, 11:29am UTC](https://discuss.appium.io/t/native-ios-element-visible-when-i-see-the-execution-video-but-i-cant-click-on-it-i-have-an-error-message-saying-that-the-element-is-still-not-existing/34893 "2021-11-02T11:29:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fatma](https://discuss.appium.io/letter_avatar_proxy/v4/letter/f/839c29/32.png) [@Fatma](https://discuss.appium.io/u/Fatma)\
**Post date:** [November 2, 2021, 11:29am UTC](https://discuss.appium.io/t/native-ios-element-visible-when-i-see-the-execution-video-but-i-cant-click-on-it-i-have-an-error-message-saying-that-the-element-is-still-not-existing/34893/1 "2021-11-02T11:29:36Z")

</div>

Hello,

I am facing an issue when automating my tests with **appium** 1.20.2 and **wdio** 7.7.3  
My tests are running on browserstack.

My scenarios are not always passed. Elements are once found and are ok and once not found and my tests are failed.

Here is the function used to tap on element and to check its existence.

tap function  
iTapButton: async function (btn) {  
let selector = Screen.getSelector(btn); //getSelector is returning the id (’~’ + selector)  
let button = await $(selector);  
if (button.isExisting()) {  
await button.waitForExist({ timeout: 90000 });  
await button.touchAction(‘tap’);  
}

```
            },

```

Check existence of the button

```
  iShouldSeeTheButton: async function (text) {
        let selector = Screen.buttonSelect(text);
        let button = await $(selector);
        await button.waitForExist({ timeout: 90000 });
        expect(await button.isDisplayed()).to.be.equal(true);
    },

buttonSelect(name) {
        return `-ios predicate string:type=='XCUIElementTypeButton' AND name=='${name}'`;
    },

```

Does anyone know why I have this kind of issue please? This is driving me crazy
