Skip to content
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

Zoomba delay #228

Closed
mcsmagngo opened this issue Sep 22, 2021 · 5 comments
Closed

Zoomba delay #228

mcsmagngo opened this issue Sep 22, 2021 · 5 comments

Comments

@mcsmagngo
Copy link

Zoomba has a big delay to process a act. I can't fix this problem. Can you help me?
I use locator to click on button or check if the button is enabled. But, these process it takes too long.

@Wolfe1
Copy link
Contributor

Wolfe1 commented Sep 23, 2021

I am going to need some additional information to proceed:

  1. What part of Zoomba are you using? GUI or Desktop?
  2. Can your provide a copy of your log.html file created by robotframework?

@mcsmagngo
Copy link
Author

mcsmagngo commented Sep 23, 2021

  1. I am using Desktop
  2. The loge is here. Thank you!

@Wolfe1
Copy link
Contributor

Wolfe1 commented Sep 23, 2021

Im not sure what happened to that log file but I cannot view it, even with removing the .pdf extension.

@Wolfe1
Copy link
Contributor

Wolfe1 commented Sep 24, 2021

Alright so I think your issue here is the use of xpath. I go over it a bit in #183 :

"Xpath in WinAppDriver is slow and in this case effected by how many other programs your desktop has running. I attempted to test a few more xpath possibilities to see if what I was doing was ill-performant but I couldn't get a noticeable difference in execution speed.

This all ends up on the WInAppDriver side which is closed source. They promise that its not dead but we have yet to hear too much from them on it."

When you use Xpath in the DesktopLibrary it is going to essentially take and xml of your app and traverse it. When its looking through the desktop session its even worse as the speed will depend on how many applications are running at once.

Luckily in your case I am seeing a lot of other locators you can use that should make things much faster. For example:

Rather than xpath=//Button[@Name="Add Package Item"] you could use that Name and do name=Add Package Item as your locator.

Or something longer like:
xpath=//Pane[@Name="The XtraLayoutControl"][@AutomationId="quoteLayoutControl"]/Pane[@AutomationId="quoteLineItemsUserControl"]/Pane[@Name="The XtraLayoutControl"][starts-with(@AutomationId,"layoutControl")]/Tree[@AutomationId="lineItemsTreeList"]/Group[@Name="Data Panel"]/TreeItem[@Name="Node1"]/DataItem[@Name="Unit Price row 1"]

Could probably just be name=Unit Price row 1.

Other locator strategies can be found at the top of the docs: https://accruent.github.io/robotframework-zoomba/DesktopLibraryDocumentation.html

image

@mcsmagngo
Copy link
Author

Thank you! I will test and i come back with results! Thank you again!

@Wolfe1 Wolfe1 closed this as completed Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants