Skip to content

Behavior of present/absent #123

@jacob-carlborg

Description

@jacob-carlborg

This is more of a question than an issue. What is the intended behavior of the present? and absent? methods on an element proxy. The seem to only work with the sate the element was in when the proxy was created. That is, if you have an element object which was present when it was created. Then after performing some action it's removed from the DOM. Now, calling present? on the same object will still return true.

BTW, using these methods as RSpec predicate matchers [1] don't really work. They throw an exception instead of resulting in an assertion failure. Not sure if this is an issue with RSpec or AePageObjects.

[1] https://github.com/rspec/rspec-expectations#predicate-matchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions