Skip to content

[Bug]: to_be_visible assertion says "Locator expected to be visible" if visible=False #2616

@MilovanovM

Description

@MilovanovM

Version

latest

Steps to reproduce

Steps to reproduce:

  1. use the assertion to_be_visible(visible=False)

Expected behavior

get AssertionError: Locator expected to be hidden

Actual behavior

get AssertionError: Locator expected to be visible

Additional context

No response

Environment

  • Operating System: [Ubuntu 22.04]
  • CPU: [arm64]
  • Browser: [All, Chromium, Firefox, WebKit]
  • Python Version: [3.12]
  • Other info:

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