Omenia / robotframework-whitelibrary

Library for automating Windows GUI technologies with Robot Framework. WhiteLibrary wraps the White automation framework.
Apache License 2.0
54 stars 15 forks source link

Attach window (on Excel) often fails and needs retry (despite high find window timeout) #148

Open mytzenka opened 5 years ago

mytzenka commented 5 years ago

Describe the bug Attach window often fails on Excel, despite the window being available. From the error message it is unclear why. Simply retrying it DOES work eventually, but I need to explicitely retry - using Robot Framwork keyword wait until keyword succeeds- despite setting a high find window timeout.

To Reproduce Not sure if you can reproduce. Our Excel application is pushed via a thing called Ivanti, so we can't start it using launch application. We have to start is using the Robot Process library and then use attach application by name to attach to it.

This does work without problem, so after that I would assume I can use "attach window" normally.

Expected behavior Attach window works in one try.

Screenshots image

rasjani commented 5 years ago

While i have very limited experience with TestStack.White itself, the issue might be that white uses applicationsession to locate the window and state within that session might not be in up to date. Now, thats just speculation but, looking at the stacktrace here, it looks like that the window can actually be found but then creating internal (to TestStack.White) Window fails to null pointer .. So, it almost feels like a bug in TestStack.White itself..