예제 #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     if (m_Selector.SelectedElements.Count > 0)
     {
         foreach (HtmlElement element in m_Selector.SelectedElements)
         {
             ElementIdentifier elementIdentifier = ElementIdentifier.FromHtmlElement(element);
             m_ElementIdentifiers.Add(elementIdentifier);
         }
         m_Selector.ClearSelection();
         zRefreshList();
     }
     else
     {
         ElementIdentifier elementIdentifier = new ElementIdentifier();
         using (frmElementIdentifierEditor frm = new frmElementIdentifierEditor(elementIdentifier))
         {
             if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
             {
                 m_ElementIdentifiers.Add(elementIdentifier);
                 zRefreshList();
             }
         }
     }
 }
예제 #2
0
 private void zPreview()
 {
     m_PreviewSelector.ClearSelection();
     if (m_ContainerIdentifier == null)
     {
         zShowPattern();
     }
     else
     {
         zShowProjection();
     }
 }
예제 #3
0
        private void zSelectAllStepElements()
        {
            m_ElementSelector.ClearSelection();
            List <GetValueStep> getValueSteps = zFindCurrentGetValueSteps(m_AutomationEngine.CurrentStep);

            if (getValueSteps.Count > 0)
            {
                foreach (GetValueStep getValueStep in getValueSteps)
                {
                    m_BrowserHelper.PollElement(getValueStep.Element, m_ElementSelector.SelectElement);
                }
            }
        }