public void CopyBranching(String sourceStepName, string targetStepName, String copyType = "all", Boolean eraseAll = false)
        {
            var btnAddBranch = new Button(
                By.XPath("(//*[@id='_webrRSV_DIV_0']/table/tbody/tr/td[3]/a[text()='" + sourceStepName +
                         "'])[1]/../../td[6]/input[@value='Copy Branches']"));

            btnAddBranch.Click();
            var popup = new CopyBranchesPopup();

            popup.SwitchTo();
            var chkTarget = new Checkbox(By.XPath("//span[text()='" + targetStepName + "']/../../td[1]/input[@type='checkbox']"));

            chkTarget.Click();
            var rdoCopyType = copyType == "smart" ? popup.RdoSmartCopy : popup.RdoAllBranches;

            rdoCopyType.Click();
            popup.ChkEraseExisting.Checked = eraseAll;
            popup.BtnOk.Click();
            popup.SwitchBackToParent(WaitForPopupToClose.Yes);
            Thread.Sleep(1500);
            WaitForPageLoad(5000);
        }
 public void CopyBranching(String sourceStepName, string targetStepName, String copyType = "all", Boolean eraseAll = false)
 {
     var btnAddBranch = new Button(
         By.XPath("(//*[@id='_webrRSV_DIV_0']/table/tbody/tr/td[3]/a[text()='" + sourceStepName +
                  "'])[1]/../../td[6]/input[@value='Copy Branches']"));
     btnAddBranch.Click();
     var popup = new CopyBranchesPopup();
     popup.SwitchTo();
     var chkTarget = new Checkbox(By.XPath("//span[text()='" + targetStepName + "']/../../td[1]/input[@type='checkbox']"));
     chkTarget.Click();
     var rdoCopyType = copyType == "smart" ? popup.RdoSmartCopy : popup.RdoAllBranches;
     rdoCopyType.Click();
     popup.ChkEraseExisting.Checked = eraseAll;
     popup.BtnOk.Click();
     popup.SwitchBackToParent(WaitForPopupToClose.Yes);
     Thread.Sleep(1500);
     WaitForPageLoad(5000);
 }