Skip to content

Wait* method will wait indefinitely with WebDriverIO when no timeout parameter passed #178

@stephane-ruhlmann

Description

@stephane-ruhlmann

If you pass a waitForTimeout options in the codecept config file and call a wait* method without any timeout parameter, it won't take the default one and wait indefinitely.

Example config :

module.exports = {
  config : {
    "tests" : testFilesPattern,
    "output" : outputDir,
    "helpers" : {
      "WebDriverIO" : {
        "url" : url,
        "browser" : browser,
        "windowSize" : "maximize",
        restart : false,
        waitForTimeout : 10000
      }
    },
    "include" : {
      "I" : "./steps_file.js"
    },
    "bootstrap" : false,
    "mocha" : {},
    "name" : ""
  }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions