I am trying to configure synthetic monitoring for my website, but for some reason it is not working.
This is my scenario.
step 1: hit the url for suppose say (https://example.com)
step 2: this https://example.com will be redirecting to https://demo.example.com with user name.
I am able to achieve step 1 but not sure how to achieve step 2. Any help would be appreciated.
I am running this current set up in heartbeat.yml file and i am running this inside Docker.
heartbeat.monitors:
- type: browser
id: elastic-website
name: Elastic website
schedule: "@every 1m"
source:
inline:
script: |-
step('launch application', async () => {
await page.goto('https://example.com');
});