Skip to content

wait* steps not works with arguments {name | id } #2469

Open
@Vorobeyko

Description

@Vorobeyko

I try to call:

I.waitForVisible({ name: 'field_name' })

but locator contains:

Locator {
  type: 'name',
  output: null,
  strict: true,
  locator: { name: 'field_name' },
  value: 'field_name'
}

And the waitForVisible step checks if this locator isCss will make locator.simplify, else waitByXpath, but name is not css, and CodeceptJS tries to search element by following xpath: 'field_name', but it is invalid xpath

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions