# In heartbeat ver. 7.17 browser type is not working

**URL:** https://discuss.elastic.co/t/in-heartbeat-ver-7-17-browser-type-is-not-working/310284
**Category:** Beats
**Tags:** heartbeat
**Created:** [July 21, 2022, 12:02pm UTC](https://discuss.elastic.co/t/in-heartbeat-ver-7-17-browser-type-is-not-working/310284 "2022-07-21T12:02:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Heet](https://avatars.discourse-cdn.com/v4/letter/h/e9a140/32.png) [@Heet](https://discuss.elastic.co/u/Heet)
#### Post date: [July 21, 2022, 12:02pm UTC](https://discuss.elastic.co/t/in-heartbeat-ver-7-17-browser-type-is-not-working/310284/1 "2022-07-21T12:02:07Z")

</div>

Trying using using the following code still not working.

type: browser  
id: elastic-website  
name: Elastic website  
schedule: "@every 1m"  
source:  
inline:  
script: |-  
step("load homepage", async () =\> {  
await page.goto('[https://www.elastic.co](https://www.elastic.co)');  
});  
step("hover over products menu", async () =\> {  
await page.hover('css=[data-nav-item=products]');  
});

---

<div class="post-metadata">

### Author: ![abdulz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdulz/32/97601_2.png) [@abdulz](https://discuss.elastic.co/u/abdulz)
#### Post date: [July 26, 2022, 12:31pm UTC](https://discuss.elastic.co/t/in-heartbeat-ver-7-17-browser-type-is-not-working/310284/2 "2022-07-26T12:31:29Z")

</div>

Hi Heet, welcome to the community.

Can you confirm if your yaml has the correct formatting (indentation), e.g. the above should look like

```nohighlight
- type: browser
  id: synthetic-inline-suites
  name: Elastic website
  schedule: '@every 1m'
  source:
    inline:
      script: |-
        step("load homepage", async () => {
          await page.goto('https://www.elastic.co');
        });
        step("hover over products menu", async () => {
          await page.hover('css=[data-nav-item=products]');
        });

```

in your yaml.

If that's correct, can you provide more details about your setup and what errors do you get in logs?

---

<div class="post-metadata">

### Author: ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)
#### Post date: [July 26, 2022, 1:45pm UTC](https://discuss.elastic.co/t/in-heartbeat-ver-7-17-browser-type-is-not-working/310284/3 "2022-07-26T13:45:44Z")

</div>

Are you using either the `heartbeat` docker image or the `elastic-agent-complete` docker image? Per the [docs](https://www.elastic.co/guide/en/beats/heartbeat/current/monitor-browser-options.html) this monitor type requires either docker container since browsers require a complex set of dependencies.

---

<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: [August 23, 2022, 3:46pm UTC](https://discuss.elastic.co/t/in-heartbeat-ver-7-17-browser-type-is-not-working/310284/4 "2022-08-23T15:46:04Z")

</div>

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