I am facing an issue with my HTML code where all the class names are similar, but only the href links are different.
What would be the most effective method to locate these links using CSS? I attempted the following approach:
test = element.all(by.css('.xyz')).get(1);
However, upon running the code:
await browser.actions().mouseMove(await locators.test.getWebElement()).click().perform();
I encountered the following error:
Failed: Index out of bound. Trying to access element at index: 0, but there are only 0 elements that match locator By(css selector, .xyz)