Having trouble with my ts code as I try to create a constant that can be easily changed by just modifying a simple element - but keep encountering the error that says "A class member cannot have the 'const' keyword."
Here's the code snippet:
const LINKS = {
Summary: 82,
Telephone: 83
};
itemLocator(ItemId): Locator {
const navItemSelector = `'div[id="${ItemId}"]'`
return page.locator(itemLocator)
}
I've tried using const in different ways and functions, but still struggling.