Skip to content

Facing issue using 'Expand TreeItem' with multiple items. #116

Open
@albertorivi77

Description

@albertorivi77

ISSUE Description:
I'm working on a WPF application that use DevExpress library.
Sometimes and inside tree taht contain multiple treeitems (10000 items) an exception will be retrieved from the 'Expand TreeItem' function:

Full Name: Test.Expand Folder10
Start / End / Elapsed: 20230802 17:55:48.422 / 20230802 17:56:11.477 / 00:00:23.055
Status: FAIL
FlaUiError: Incorrect syntax usage 'self.current_treeitem.Expand()'

Test code:
${IODataServerTreeItem} /Window[@name="xxxx"]/Group[@AutomationId="dockingManager"]/Group[@AutomationId="rootLayoutGroup"]/Tab/Group[@AutomationId="UFProjectExplorerUIControl_Panel"]/Custom[@AutomationId="UFProjectExplorerUIControl"]/Tree/Pane[@AutomationId="dataPresenter"]/TreeItem[@name="I/O Data Server"]

${folder1TreeItem} /Window[@name="xxxx"]/Group[@AutomationId="dockingManager"]/Group[@AutomationId="rootLayoutGroup"]/Group/Tab/Group[@AutomationId="I_O_Data_Server__emptyProject__Panel"]/Custom/Tab/TabItem[@AutomationId="DXTabItemtabAddressSpace"]/Custom/Tab/TabItem[@AutomationId="DXTabItemtreeListTab"]/Tree/Pane[@AutomationId="dataPresenter"]

Expand Folder10
FlaUILibrary.Double Click ${IODataServerTreeItem}
FlaUILibrary.Wait Until Element Is Visible ${folder1TreeItem} 10 Element Not Loaded
FlaUILibrary.Expand Treeitem ${folder1TreeItem} N:folder_10
FlaUILibrary.Wait Until Element Is Visible ${folder1Variable2TreeItem} 10 Element Not Loaded
FlaUILibrary.Select Treeitem ${folder1TreeItem} N:variable_02
FlaUILibrary.Collapse Treeitem ${folder1TreeItem} N:folder_10
FlaUILibrary.Click ${addressSpaceTabCloseButton}

Anyone facing this kind of issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions