Open
Description
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
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
[-]wait* steps now works with arguments {name | id | }[/-][+]wait* steps now works with arguments {name | id }[/+][-]wait* steps now works with arguments {name | id }[/-][+]wait* steps not works with arguments {name | id }[/+]swtech-11 commentedon Jul 28, 2021
A workaround is explicitly declaring your locatorObj type to 'css'. Working example: