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

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

Open
mytzenka opened this issue Jul 3, 2019 · 1 comment

Comments

@mytzenka
Copy link

mytzenka commented Jul 3, 2019

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
Copy link
Contributor

rasjani commented Jul 4, 2019

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..

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