-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facing issue using 'Expand TreeItem' with multiple items. #116
Comments
Which kind of exception do you receive? |
Hi @Nepitwin I receive this error: I see this error more often when also I expand different treeitem that contains many item. In case the test contain use one or two treeitem command this error will not raised. |
Okay thanks for you response. Afterwards this issue should be easily to reproduce if many treeitems will be created. To investigate if it's a flaui issue here and how to solve it. |
I can see from the code that if an exception occurs when opening a treeview, the error mentioned occurs.
Unfortunately, the error type of C# is suppressed and you cannot see which error is forcing it. I am currently also not able to reproduce the error. Do you have an example of this? |
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?
The text was updated successfully, but these errors were encountered: