Get Element States keyword in presenter mode
See original GitHub issueDescribe 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:
- Created a year ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Will be fixed with #2109
Actually @aaltat that has happened here:
https://github.com/MarketSquare/robotframework-browser/commit/2caab7c15b169e114b96837eca64eb5fb025e0a6
I will remove presenter mode from
Get Element Statesagain.