예제 #1
0
 public Google.UITestFramework.Object.Keyword GetKeywordFromEditPanel(string destinationUrl)
 {
     WinEdit uITBNameEdit = this.UIWss_adsagetest163comWindow1.UITBNameWindow.UITBNameEdit;
     WinComboBox uICBMatchTypeComboBox = this.UIWss_adsagetest163comWindow2.UICBMatchTypeWindow.UICBMatchTypeComboBox;
     WinComboBox uICBStatusComboBox = this.UIWss_adsagetest163comWindow2.UICBStatusWindow.UICBStatusComboBox;
     Google.UITestFramework.Object.Keyword keyword = new UITestFramework.Object.Keyword
     {
         Keywords = uITBNameEdit.Text,
         MatchType = uICBMatchTypeComboBox.SelectedItem,
         Status = uICBStatusComboBox.SelectedItem,
         DestinationUrl = GetUIEditDestination(destinationUrl).Text,
     };
     return keyword;
 }
예제 #2
0
        public UITestFramework.Object.Keyword GetKeywordFromEditPanel(string destinationUrl)
        {
            WinEdit uITBNameEdit = this.UIMicrosoftadlabsUSDadWindow.UITBNameWindow.UITBNameEdit;
            WinEdit uIbroadMatchBid = this.UIMicrosoftadlabsUSDadWindow.UITBBroadMatchBidWindow.UITBBroadMatchBidEdit;
            WinEdit uIexactMatchBid = this.UIMicrosoftadlabsUSDadWindow.UITBExactMatchBidWindow.UITBExactMatchBidEdit;
            WinEdit uIphraseMatchBid = this.UIMicrosoftadlabsUSDadWindow.UITBPhraseMatchBidWindow.UITBPhraseMatchBidEdit;
            WinEdit uIDestinationURL=this.UIMicrosoftadlabsUSDadWindow.UIAdCenterOrderItemEdiWindow.UIButtonEditDestinatioEdit;
            WinComboBox uICBStatusComboBox = this.UIMicrosoftadlabsUSDadWindow.UICBStatusWindow.UICBStatusComboBox;

            AdCenter.UITestFramework.Object.Keyword keyword = new UITestFramework.Object.Keyword
            {
                Keywords = uITBNameEdit.Text,
                KeywordStatus = uICBStatusComboBox.SelectedItem,
                BroadMatchBid=uIbroadMatchBid.Text,
                ExactMatchBid=uIexactMatchBid.Text,
                PhraseMatchBid=uIphraseMatchBid.Text,
                DesURL = uIDestinationURL.Text,
            };
            return keyword;
        }