# Element Exist getting stuck

**URL:** <https://forum.uipath.com/t/element-exist-getting-stuck/35906>\
**Category:** Help\
**Tags:** uiautomation, activities\
**Created:** [June 10, 2018, 5:33am UTC](https://forum.uipath.com/t/element-exist-getting-stuck/35906 "2018-06-10T05:33:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avi7](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/avi7/32/52390_2.png) [@Avi7](https://forum.uipath.com/u/Avi7)\
**Post date:** [June 10, 2018, 5:33am UTC](https://forum.uipath.com/t/element-exist-getting-stuck/35906/1 "2018-06-10T05:33:04Z")

</div>

Hi All,

I have come across one issue in my workflow, I’m using element exist with timeout at 3000. It is getting freeze on element exist activity, it will wait for more than a hours, Not even throwing any error, forcefully i have to terminate it every-time.

If anyone has resolution on this, please let me know as well.

Best regards,  
Avi

---

<div class="post-metadata">

**Author:** ![radu\_bucur](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/radu_bucur/32/14652_2.png) [@radu\_bucur](https://forum.uipath.com/u/radu_bucur)\
**Post date:** [June 10, 2018, 10:08am UTC](https://forum.uipath.com/t/element-exist-getting-stuck/35906/2 "2018-06-10T10:08:37Z")

</div>

Did you try to modifiy the **WaitForReady** parameter? Maybe there’s some loading issue with the application you’re trying to automate.  
Try setting it to **None** and see if the error still occurs.

---

<div class="post-metadata">

**Author:** ![Avi7](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/avi7/32/52390_2.png) [@Avi7](https://forum.uipath.com/u/Avi7)\
**Post date:** [June 10, 2018, 3:49pm UTC](https://forum.uipath.com/t/element-exist-getting-stuck/35906/3 "2018-06-10T15:49:46Z")

</div>

Hi @radu_bucur,

Thanks for your response.

I tried all option None, interactive and complete but still didn’t resolved. It is just getting stuck on that particular element for hours. At least it should throw error after 30 second.

best  
Avi

---

<div class="post-metadata">

**Author:** ![radu\_bucur](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/radu_bucur/32/14652_2.png) [@radu\_bucur](https://forum.uipath.com/u/radu_bucur)\
**Post date:** [June 11, 2018, 5:48am UTC](https://forum.uipath.com/t/element-exist-getting-stuck/35906/4 "2018-06-11T05:48:36Z")

</div>

Can you tell me how often does this error occur? Is it something that happens every time?  
Also, have you tried using something like a **FindElement** activity to replace the Element Exists that gets stuck?

---

<div class="post-metadata">

**Author:** ![rajsekhar](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rajsekhar/32/176642_2.png) [@rajsekhar](https://forum.uipath.com/u/rajsekhar)\
**Post date:** [June 11, 2018, 11:24am UTC](https://forum.uipath.com/t/element-exist-getting-stuck/35906/5 "2018-06-11T11:24:52Z")

</div>

do create new element exists activity and delete old one

---

<div class="post-metadata">

**Author:** ![m.s](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/m.s/32/243495_2.png) [@m.s](https://forum.uipath.com/u/m.s)\
**Post date:** [March 17, 2022, 2:34pm UTC](https://forum.uipath.com/t/element-exist-getting-stuck/35906/6 "2022-03-17T14:34:44Z")

</div>

I’m facing same issue in SAP automation. When I try to use **Element Exits** or **Find Element** activities to detect PopUp window, activites are stucked. Timeout is set to 300ms, WaitForReady=None, WaitActive=False, WaitVisible=None

**Element Exits** :

 ![image](https://global.discourse-cdn.com/uipath/original/4X/e/6/1/e6188c3f58d8df4a4b993eda0762194de7072405.png)

**Find Element** :

 ![image](https://global.discourse-cdn.com/uipath/original/4X/0/8/0/08080e75354a50f71cc97df9ec95bda20fc23040.png)

It looks like WaitForReady or Timeout property is not working in special situations during SAP automation.

My investigation:  
This is happening in SAP, when you try to export data from transaction to Excel file. Go to some SAP transaction, then List → Export → Spreadsheet, then PopUp **Save as** appears:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/f/6/4/f64c3aee4c29d51f7f90f17221ff5ba5c8c3f75e.jpeg)

When SAP PopUp **Save as** is present on screen, SAP is loading something on background screen (loading bar visible):

 ![image](https://global.discourse-cdn.com/uipath/original/4X/0/3/8/0382f6bdc500f4dedfff3598a63d2a14e9a5f71d.png)

For this reason, WaitForReady property might not work in this situation, even if set to None. Or, maybe problem with Timeout property, I don’t know…

Honestly, I didn’t found solution for this. Anyone can help? It’s a headache

---

<div class="post-metadata">

**Author:** ![LevKushnir](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/levkushnir/32/124465_2.png) [@LevKushnir](https://forum.uipath.com/u/LevKushnir)\
**Post date:** [March 21, 2022, 10:03am UTC](https://forum.uipath.com/t/element-exist-getting-stuck/35906/7 "2022-03-21T10:03:17Z")

</div>

Hi  
Please ensure you have this set on your machine, than all will work super smooth and you do not need any “wait for something”

> **[Configuration Steps](https://docs.uipath.com/studio/docs/sap-wingui-configuration-steps#enabling-modal-dialog-boxes)**
>
> Enabling SAP GUI Scripting In order to enable Studio to interact with SAP WinGUI, you need to perform the following configurations steps on the server side and the client side. This enables the default and recommended element detection framework SAP...

This screen is not SAP window, it is “Microsoft Windows” window

 ![image](https://global.discourse-cdn.com/uipath/original/4X/3/e/6/3e671aeab618da4eba63e22829f9bedca6c2f47c.jpeg)  
c

Best regards, Lev

---

<div class="post-metadata">

**Author:** ![ignasi.peiris](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ignasi.peiris/32/523526_2.png) [@ignasi.peiris](https://forum.uipath.com/u/ignasi.peiris)\
**Post date:** [March 21, 2022, 10:13am UTC](https://forum.uipath.com/t/element-exist-getting-stuck/35906/8 "2022-03-21T10:13:21Z")

</div>

@m.s

In this SAP Automations, the bot is sometimes stuck on the previous activity (the one that popped up the “Save As” in this example)

What I normally do, is put it in a parallel activity, let me show an example of the flow:

Wrong (for this type of activities):

- The element exist doesn’t work, since the bot thinks he still did not finish the click.

 ![image](https://global.discourse-cdn.com/uipath/original/4X/c/7/c/c7cc2c829367a94e4527a517b144b8f847d3e620.png)

Correct:

- The element exists works, since the bot is clicking, and without waiting for the activity to finish, he starts checking the popup

![image](https://global.discourse-cdn.com/uipath/original/4X/8/7/f/87fbbed8c2920c46670e40aace12d34ae2d1d12a.png)

This is quite common in SAP buttons that open subwindows, and sometimes also in Oracle.
