TestStack.White.WhiteException : Error occured while geting ControlType=edit,AutomationId=AssignmentReference ----> System.Windows.Automation.ElementNotAvailableException : The target element corresponds to UI that is no longer available (for example, the parent window has closed). at MS.Internal.Automation.ElementProxy.GetPropertyValue(Int32 property)
at
TestStack.White.UIItems.UIItemContainer.Get(SearchCriteria searchCriteria, TimeSpan timeout) at TestStack.White.UIItems.UIItemContainer.Get(SearchCriteria searchCriteria) at Trafigura.Modules.UITests.Global.GlobalHelpers.GetByAutomationId(Window window, String id) in GlobalHelpers.cs: line 32
This happens when the underlying element is recreated (due to virtualisation, hide/show parent window etc).
When this happens you should get the element again using white, rather than keeping a variable somewhere which is still pointing at an old automation element.
Hope that makes sense.
--
You received this message because you are subscribed to the Google Groups "TestStack.White" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
teststack_whi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.