I need to click on an element generated by raphael js - https://dmitrybaranovskiy.github.io/raphael/
const rects = await page.$('div[class = "canvas sectionCanvas"]');
This seletor returns a very large object. I need to click on the 4th or 5th element in the childNode's nodeList screenshot. The screenshot is a nodelist from this query
document.querySelectorAll('div[class = "canvas sectionCanvas"]')
Im having trouble getting a valid selector to click that rect element. Any advice helps. I already read the playwright selectors/element handles docs
This thread is trying to answer question "How can I click on a specific element in a nodeList generated by Raphael JS using a selector?"
try to take a look in the docs. await page.locator("//*[@class="canvas sectionCanvas"]") also https://playwright.dev/docs/other-locators#xpath-union
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].