We are noticing when running tests against an electron app and using the below code to fetch elements, it's returning duplicate elements
Eg: await $('.titlename').elements();
If we use evaluate, then it returns the right number of elements. I verified the DOM and don't see any duplicates, either.
await evaluate(() => Array.from(document.querySelectorAll('.titlename')));
If I run the same test on browser, everything seems to be working correctly.
Expected behavior
Should return a right number of elements, without duplicates.
Additional context
Only happening on electron app, the browser seems to work fine.