# Locator.click: Timeout 50000ms exceeded. problem in a synthetic monitor

**URL:** <https://discuss.elastic.co/t/locator-click-timeout-50000ms-exceeded-problem-in-a-synthetic-monitor/349808>\
**Category:** Synthetics\
**Created:** [December 21, 2023, 3:27pm UTC](https://discuss.elastic.co/t/locator-click-timeout-50000ms-exceeded-problem-in-a-synthetic-monitor/349808 "2023-12-21T15:27:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pagliardini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pagliardini/32/127060_2.png) [@pagliardini](https://discuss.elastic.co/u/pagliardini)\
**Post date:** [December 21, 2023, 3:27pm UTC](https://discuss.elastic.co/t/locator-click-timeout-50000ms-exceeded-problem-in-a-synthetic-monitor/349808/1 "2023-12-21T15:27:47Z")

</div>

Hello, I am having problems with a synthetic monitor.

is this step

```auto
step('Click internal:text="Available domain"i', async () => {
  await page1.getByText('Available domain').click();
  await page1.getByText('Register').click();
  await page1.getByRole('heading', { name: 'Domain Data' }).click();
  await page1.getByRole('tab', { name: 'Confirm procedure' }).click();
});

```

elastic gives me an error

locator.click: Timeout 50000ms exceeded.

---

<div class="post-metadata">

**Author:** ![vigneshshanmugam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vigneshshanmugam/32/40324_2.png) [@vigneshshanmugam](https://discuss.elastic.co/u/vigneshshanmugam)\
**Post date:** [December 21, 2023, 5:44pm UTC](https://discuss.elastic.co/t/locator-click-timeout-50000ms-exceeded-problem-in-a-synthetic-monitor/349808/2 "2023-12-21T17:44:50Z")

</div>

Hi @pagliardini ,

Its a generic error when certain operations/elements cannot be found on the page, I am really not sure we can do much here other than changing the scripts to look for the elements with the right page.

One other thing you could try is to increase the timeouts.

```ts
await page1.getByText('Register').click({timeout: 90000});

```

But, I would investigate why the elements are not loading for the last 50seconds and understand whether they were lazy loaded or is not on the the viewport when the action is performed.

Thanks,  
Vignesh

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 18, 2024, 5:45pm UTC](https://discuss.elastic.co/t/locator-click-timeout-50000ms-exceeded-problem-in-a-synthetic-monitor/349808/3 "2024-01-18T17:45:12Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
