This question is locked. New answers and comments are not allowed.
I am attempting to do a basic test against our implementation of Microsoft Dynamics CRM. In this test I am creating a new prospect which is fired from clicking a button. This button opens a new popup window which, in turn, opens another popup window to perform a pre-search. I am attaching a screenshot of the Project Elements so you can see. The issue that I am having is that when the pre-search is completed the system will automatically close the popup. This is recorded in the test explorer with an id value http://capomleaddev01/sfa/opps/edit.aspx?id=f20a81bd-9f21-df11-bd0b-000bcd9ce841. I cannot leave this in the test because the id value will be different for each test. Once I save the new prospect record in 'CreateProspectLead' that window is closed. If I deselect this step everything seems to be OK except for the last portion of my test.... Once all the windows have been closed I am left with the original screen. Within the test I want/need to click a button on the original screen. In this instance I am trying to click the ProspectsNobrTag under FrameWorkspaceFrame. When the test is run I receive the following error when it attemps to access this element.
ArtOfTest.Common.Design.Exceptions.ExecutionException: Unhandled exception thrown during automation step execution ---> System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure:
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
--- End of inner exception stack trace ---
I dont know if disabling the 'Close pop-up window:' actions is the root cause of this but I am not sure how to get around the id issue or how to identify why it cannot locate the button. Any ideas on how to debug/fix?
Aaron
ArtOfTest.Common.Design.Exceptions.ExecutionException: Unhandled exception thrown during automation step execution ---> System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure:
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
--- End of inner exception stack trace ---
I dont know if disabling the 'Close pop-up window:' actions is the root cause of this but I am not sure how to get around the id issue or how to identify why it cannot locate the button. Any ideas on how to debug/fix?
Aaron