Skip to content

WDIO8 / wdio-wait-for - Condition is not a function #343

@LordPato

Description

@LordPato

After updating to WDIO8 and wdio-wait-for 3.0.1 I started to get this "Condition is not a function" whenever I try to use "urlContains"

Simple code :

import { urlContains } from 'wdio-wait-for';

export async function crossSellHandler(option: string) {
    await basePage.waitForPageStopLoadding()
    return await browser.waitUntil(urlContains("/test/"), { timeout: 60000, timeoutMsg: "Test page is not displayed" });

Error :

Error: Condition is not a function
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async World.crossSellHandler (...\test.ts:17:12)

Any clues where to look? The same code was properly working before updating.

FYI : It works fine with version 2.2.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions