yashaka / selene

User-oriented Web UI browser tests in Python

Home Page:https://yashaka.github.io/selene/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Condition have.no.attribute('name').value_containing('part-value') causes TypeError

maxim-zaitsev opened this issue · comments

I am trying to check an element with attribute value that does not contain a part value but TypeError is raised:

s('locator').should(have.no.attribute('my_attribute').value_containing('part-value'))
>>> {TypeError}attribute.<locals>.value_containing() missing 1 required positional argument: 'expected'

Current workaround:

s('locator').should(have.attribute('my_attribute').value_containing('part-value').not_)