# Macro Click timeout

**URL:** <https://forums.distill.io/t/macro-click-timeout/2444>\
**Category:** Uncategorized\
**Tags:** macros\
**Created:** [August 28, 2023, 1:07pm UTC](https://forums.distill.io/t/macro-click-timeout/2444 "2023-08-28T13:07:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![alextaxanalysts](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/898d66/32.png) [@alextaxanalysts](https://forums.distill.io/u/alextaxanalysts)\
**Post date:** [August 28, 2023, 1:07pm UTC](https://forums.distill.io/t/macro-click-timeout/2444/1 "2023-08-28T13:07:11Z")

</div>

The macro times out in the second (click) step.

 ![Czech](https://forums.distill.io/uploads/default/original/1X/bcd53304d992e293028f390be51f38a9525a2497.jpeg)

What can I do?  
[Czech Supreme Court and Lower Courts-55a6d598-459c-11ee-a1ae-83e4fc7d7f8f.json](https://forums.distill.io/uploads/short-url/kFFyLKmRNmR6L1zV0BkigzbQq7y.json) (673 Bytes)

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [August 29, 2023, 11:18am UTC](https://forums.distill.io/t/macro-click-timeout/2444/2 "2023-08-29T11:18:02Z")

</div>

Click (or type) step’s selector is used to locate an element in the page. Browser waits for up to 30 seconds for the element to appear in the page. If the element is not found within that time, an error is raised. Can you try using the “fix selector” action to reselect the element and try again? Let me know how it goes.

---

<div class="post-metadata">

**Author:** ![alextaxanalysts](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/898d66/32.png) [@alextaxanalysts](https://forums.distill.io/u/alextaxanalysts)\
**Post date:** [August 30, 2023, 11:49am UTC](https://forums.distill.io/t/macro-click-timeout/2444/3 "2023-08-30T11:49:58Z")

</div>

What is the “fix selector” action and where can I find it?

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [August 31, 2023, 12:44am UTC](https://forums.distill.io/t/macro-click-timeout/2444/4 "2023-08-31T00:44:40Z")

</div>

I have highlighted the “fix selection” action using a red box in the following screenshot:

![image](https://forums.distill.io/uploads/default/original/1X/2ec0c4b1948e4a80900961eccd150c90a11cca5e.png)

---

<div class="post-metadata">

**Author:** ![alextaxanalysts](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/898d66/32.png) [@alextaxanalysts](https://forums.distill.io/u/alextaxanalysts)\
**Post date:** [September 8, 2023, 9:38pm UTC](https://forums.distill.io/t/macro-click-timeout/2444/5 "2023-09-08T21:38:15Z")

</div>

If you mean by reselecting hit the little checkmark in the fix selector after I clicked on that icon, it didn’t yield anything, meaning nothing happened.

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [September 11, 2023, 1:22pm UTC](https://forums.distill.io/t/macro-click-timeout/2444/6 "2023-09-11T13:22:42Z")

</div>

Does the selector value `[aria-describedby]` not get updated? If yes, a likely reason could be that Distill generated a temporary selector that was valid only when the clicked element has the focus.

Can you try to follow these steps:

1. Close and reopen the recorder.
2. Do not click anything in the page that is loaded automatically.
3. Expand the click step in the macro. Click on the selector to open selector that lets you update a step’s selector.

Does Distill generate a new selector for the element after the third step? If yes, please share the updated selector, and do try to replay again to see if it works.

---

<div class="post-metadata">

**Author:** ![alextaxanalysts](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/898d66/32.png) [@alextaxanalysts](https://forums.distill.io/u/alextaxanalysts)\
**Post date:** [September 11, 2023, 9:22pm UTC](https://forums.distill.io/t/macro-click-timeout/2444/7 "2023-09-11T21:22:38Z")

</div>

I dont really understand what you mean by No. 3. What do you want me do to? This is how my screen looks like in this step and if I click on the click item.

 ![2023-09-11 Czech Court](https://forums.distill.io/uploads/default/original/1X/245beda50cbd2c80a3ff99834e545fc1d873f72c.jpeg)

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [September 12, 2023, 4:10am UTC](https://forums.distill.io/t/macro-click-timeout/2444/8 "2023-09-12T04:10:46Z")

</div>

There is a caret icon (\>) to the left of the `click` step. Clicking that will expand the step. It will show a selector field. Click the selector. It will let you click and select an element on the page. That should update the selector.

 ![image](https://forums.distill.io/uploads/default/original/1X/bf6889406f42867d78aa31c67476afaf76be8faa.png)

---

<div class="post-metadata">

**Author:** ![alextaxanalysts](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/898d66/32.png) [@alextaxanalysts](https://forums.distill.io/u/alextaxanalysts)\
**Post date:** [September 12, 2023, 12:53pm UTC](https://forums.distill.io/t/macro-click-timeout/2444/9 "2023-09-12T12:53:38Z")

</div>

Ajit, you said: " Click the selector. It will let you click and select an element on the page. That should update the selector."

My screen doesn’t look 100% like your screenshot. This is how my macro looks before I click on “click” and when it freezes:

 ![Czech](https://forums.distill.io/uploads/default/original/1X/bcd53304d992e293028f390be51f38a9525a2497.jpeg)

After I click on “Fix Selector” (Is this what you mean by “click the selector”?), the following screen appears:

 ![2023-09-12](https://forums.distill.io/uploads/default/original/1X/a744cc934f2f3bc686f8ccfbe50b4d1d10065645.jpeg)

This one looks kind of like yours but when I click on the blue checkmark next to “[aria-describedly]” (Is that what I’m supposed to do?) then nothing happens (Should that “update the selector”?) other than that the “fix selector” button disappears.

 ![2023-09-12-3](https://forums.distill.io/uploads/default/original/1X/73da69653570291864e6dc65630af70d9a577b78.jpeg)

When I save this and run the macro again, the timeout message reappears. Any solution?

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [September 13, 2023, 4:10pm UTC](https://forums.distill.io/t/macro-click-timeout/2444/10 "2023-09-13T16:10:56Z")

</div>

Here is a quick screen recording that shows how to update the selector:

Notice the once the selector is clicked, it opens an input to edit. Alternatively, we can select any element form the page visually too. Clicking an element updates the input box with the new selector.

Does this make sense? Let me know if you have any questions.

---

<div class="post-metadata">

**Author:** ![alextaxanalysts](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/898d66/32.png) [@alextaxanalysts](https://forums.distill.io/u/alextaxanalysts)\
**Post date:** [September 20, 2023, 8:16pm UTC](https://forums.distill.io/t/macro-click-timeout/2444/11 "2023-09-20T20:16:10Z")

</div>

Thanks, I got it now and it works now.
