Skip to content

Get Element States keyword in presenter mode #2068

@tomeekCZ

Description

@tomeekCZ

Describe the bug
When in presenter mode, the keyword Get Element States does not return state detached for element, which is detached. It will raise timeout error instead.

To Reproduce
Steps to reproduce the behavior:

*** Settings ***
Library     Browser    enable_presenter_mode=False


*** Test Cases ***
Test
    New Browser    headless=False
    New Page
    Go To    https://robotframework.org/
    ${state_visible_element}    Get Element States    //h1[@class='title']    evaluate    visible in value
    ${state_detached_element}    Get Element States    //h1[@class='wrong_title']    evaluate    detached in value

Expected behavior
When presenter mode is not active, the code works just fine. When I set presenter mode as active, the first Get Element State works (the element is there), but the second one doesn't. The element is not there, but it should return detached instead of the error message.

Desktop (please complete the following information):

  • OS: Windows 10, build 19044.1706
  • Browser: Chromium
  • Version: 102.0.5005.40 (Developer Build) (64-bit)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions