Hi,
I have this error on my synthetics test on Uptime Module:
page.click: Evaluation failed: DOMException: Failed to execute 'evaluate' on 'Document': The string '[href=/observability]' is not a valid XPath expression.
Configuration:
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]');
});
step("click observability product", async () => {
await page.click('xpath=[href=/observability]');
});
Any ideas of what could be the problem?