Skip to content

Seeing duplicates on electron app when .elements() is used #2754

@nirupamayadlapalli

Description

@nirupamayadlapalli

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions