refering to issue #806 ::
I reinstalled rpaframework with version 2.1.1
python -m pip install rpaframework
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: rpaframework in c:\users\herbe\appdata\roaming\python\python311\site-packages (22.1.1)
Running the script which has been delivered with issue #806 I got the error:
ElementNotFound: Element not found with locator ‘return_structure=True’
the robot file
*** Settings ***
Library RPA.Windows
Library RPA.FileSystem
Library Collections
Library RPA.Browser.Selenium
*** Tasks ***
Get Entries From KeePass Group
[Setup] Windows Search KeePass 2
# Control KeePass window and log+print its element tree.
Control Window subname:"- KeePass"
${structure} = Print Tree return_structure=${True}
Log To Console ${structure}
# Get all secret groups matching criteria. (belonging to the accepted names list)
@{names} = Create List Test
@{groups} = Create List
${elems} = Get Elements name:Database > type:TreeItemControl
FOR ${elem} IN @{elems}
${status} = Run Keyword And Return Status Should Contain
... ${names} ${elem.name}
IF ${status}
Append To List ${groups} ${elem}
END
END
# Now print all the entries in every accepted group.
FOR ${group} IN @{groups}
Click ${group} # make sure to unfold the current group
Log To Console In group: ${group.name}
# Note that the parent `path:` below is relative to the main window and not the
# group we're currently in. (as the entries are not listed inside the group
# itself in the element tree)
${elems} = Get Elements path:1|1|1|2|1 > type:ListItemControl
FOR ${elem} IN @{elems}
Log To Console Entry: ${elem.name}
END
END
[Teardown] Close Current Window