or
private HtmlFindExpression modalH2 = new HtmlFindExpression("xpath=//div[@id='tf-modal-window-top']/h2");ActiveBrowser.WaitForElement(modalH2, SharedValues.LongtTimeout, true);Test method Iit.TradingFloor.TestWebUI.UrlRedirectionTests.UrlRedirection_Admin_SearchRedirection threw exception: System.ApplicationException: Exception thrown during the wait for a condition. Error: Unexpected error while waiting on condition. Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Refresh() failed due to an unexpected exception. ---> ArtOfTest.WebAii.Exceptions.FindException: Find Details:- No FindParams defined.- Start Element: [Element: 'html:0'] at ArtOfTest.WebAii.ObjectModel.Element.Refresh() --- End of inner exception stack trace --- at ArtOfTest.WebAii.ObjectModel.Element.Refresh() at ArtOfTest.WebAii.ObjectModel.Element.Refresh(Boolean forceDomTreeRefresh) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at ArtOfTest.Common.WaitAsync.CallRefreshIfNeeded[T](T target) at ArtOfTest.Common.WaitAsync._worker_DoWork[T,V](Object waitParam)var fillBrush = networkOverlay.GetProperty(new AutomationProperty("Fill", typeof(System.Windows.Media.Brush)))var fillBrush = myRectangle.Fill;<input type="text" class="field ng-pristine ng-invalid ng-invalid-required ng-valid-maxlength ng-touched" size="25" maxlength="35" name="billing_first_name" id="billing_first_name" ng-class="{submitted: submitted}" ng-maxlength="35" ng-model="Cart.BillingAddress.FirstName" ng-required="true" required="required"><input type="text" class="field ng-valid-maxlength ng-touched ng-dirty ng-valid ng-valid-required" size="25" maxlength="35" name="billing_first_name" id="billing_first_name" ng-class="{submitted: submitted}" ng-maxlength="35" ng-model="Cart.BillingAddress.FirstName" ng-required="true" required="required">var left = userControl.GetAttachedProperty<double>("Canvas", "Left");<br>var top = userControl.GetAttachedProperty<double>("Canvas", "Top");