Пример #1
0
 /// <summary>
 /// The customer administration dialog is not direct accessible, only via button click in several detail views.
 /// Here we are using the access via part details. So we must switch to parts, create a new part and press the
 /// CustomerOpenAdministrationButton.
 /// To delete the temporary part, CleanUp() should be called afterwards.
 /// </summary>
 public override void Goto()
 {
     if (!VisibleOnScreen)
     {
         mParts = Goto <TcParts>();
         mParts.Toolbar.New();
         mParts.SingleDetail.OpenCustomerAdministration();
     }
 }
        private bool OpenFluxBendSolutionAndCloseFlux(TcParts parts)
        {
            parts.SingleDetailBendSolutions.OpenBendSolution("Bend1");
            parts.WaitForDetailOverlayAppear();

            var flux    = FluxApp;
            var visible = flux.IsMainWindowVisible(TestSettings.FluxBoostAndStartTimeout, TimeSpan.FromMilliseconds(500));

            if (visible)
            {
                flux.CloseApp();

                parts.WaitForDetailOverlayDisappear();
            }

            Assert.IsTrue(visible);

            return(true);
        }