question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get Element States keyword in presenter mode

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Snooz82commented, Jun 13, 2022

Will be fixed with #2109

0reactions
Snooz82commented, Jun 13, 2022

Actually @aaltat that has happened here:

https://github.com/MarketSquare/robotframework-browser/commit/2caab7c15b169e114b96837eca64eb5fb025e0a6

I will remove presenter mode from Get Element States again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browser - MarketSquare
Keywords can find elements with strict mode. If strict mode is true and ... Keyword documentation states if keyword uses strict mode.
Read more >
get - C# Reference - Microsoft Learn
The get keyword defines an accessor method in a property or indexer that returns the property value or the indexer element.
Read more >
HTML elements reference - HTML: HyperText Markup Language
This page lists all the HTML elements, which are created using tags. ... They are grouped by function to help you find what...
Read more >
Unable to use "Get Element States" Browser Library in Robot ...
I have earlier used tests using Keyword - Get Element States, but suddenly I see it throws me below err: No keyword with...
Read more >
Layouts and binding expressions | Android Developers
This view element is what your root would be in a non-binding layout file. ... You can use the following operators and keywords...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found