luke_jones
12 years agoOccasional Contributor
QuerySelector and "The window was destroyed during the execution method"
Hello,
In my web test project I use the QuerySelector method to select objects on my page. For example...
var base = Alias.browser.myPage;
base.QuerySelector("#myButton").Click();
This has always worked fine but when I tried to run my test project today I received the error "The Window was destroyed during the method execution" on every step that calls page objects in this way.
Following the advice in the error message I put a CheckProperty on the exists property of the button before calling it and this passes so I am not sure why the clicks themselves are failing.
In my web test project I use the QuerySelector method to select objects on my page. For example...
var base = Alias.browser.myPage;
base.QuerySelector("#myButton").Click();
This has always worked fine but when I tried to run my test project today I received the error "The Window was destroyed during the method execution" on every step that calls page objects in this way.
Following the advice in the error message I put a CheckProperty on the exists property of the button before calling it and this passes so I am not sure why the clicks themselves are failing.