Skip to content

[BUG] issue with waitForSelector #2283

@saurabhxkapoor

Description

@saurabhxkapoor
  • Playwright Version: 1.0.2
  • Operating System: Mac
  • Node version: 10.15.2
  • Browser: chrome (tried chrome only)

I am migrating tests from Puppeteer to use Playwright.

image

waitUntilAppears: async function (selector, timeoutTime) {
        let timeout_updated = await (typeof timeoutTime === 'undefined' ? TIMEOUT : timeoutTime);
        console.log(selector);
        console.log(timeout_updated);
        await page.waitForSelector(selector, {
                timeout: timeout_updated * 1000,
                state: 'visible'
            });
    },

When this method is called, it waits for waiting for selector "[visible] .arc-tree-node". Seems like the selector needs to be only .arc-tree-node and not prefixed with [visible]. Because, if i searc the selector in chrome console - [visible] .arc-tree-node, i dont find anything.

Any pointers ?

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