コード例 #1
0
        public HoneywellFirstLoginLogoff(BrowserWindow window)
        {
            _browser = window;
            _usernameBox = new xHtmlEdit(_browser, "UserName");
            _passwordBox = new xHtmlEdit(_browser, "Password");
            _loginBtn = new xHtmlButton(_browser, "submit", "Type");

            _profileBtn = new xHtmlHyperlink(_browser, "newyork_admin ", "FriendlyName");
            _logoffBtn = new xHtmlHyperlink(_browser, "Logoff", "FriendlyName");
        }
コード例 #2
0
 public WorkOrderPage(BrowserWindow b)
 {
     b.CloseOnPlaybackCleanup = false;
     _browser = b;
     _workorderTab = new xHtmlHyperlink(b, "Work Orders", "InnerText");
     _workorderPage = new xHtmlDiv(b, "New Work Orders ", "InnerText");
     _newWorkorder = new xHtmlImage(b, "btnSubmitNewWO");
     _name = new xHtmlEdit(b, "WorkOrderName");
     _selectService = new xHtmlSpan(b, "k-icon k-i-arrow-s", "Class");
     _HomeTab = new xHtmlHyperlink(b, "Home", "InnerText");
     _createbtn = new xHtmlInputButton(b, "btnCreate");
     _backbtn = new xHtmlImage(b, "btnBack");
     _serialNo = new xHtmlEdit(b, "SerialNo");
     _serchIcon = new xHtmlImage(b, "btnGo");
     _Addbtn = new xHtmlInputButton(b, "btnAdd");
     _successmsg = new xHtmlDiv(b, "success", "Class");
     _errormsgName = new xHtmlSpan(b, "WorkOrderName_validationMessage");
     _workOrderNameFilterLink = new xHtmlHyperlink(b, "14", "TagInstance");
     _Filtertxt = new xHtmlEdit(b, "SINGLELINE","Type");
     _filterbtn = new xHtmlButton(b, "Filter","DisplayText");
     _clearbtn = new xHtmlButton(b, "reset", "Type");
     _workOrderName = new xHtmlTableCell(b, "1", "TagInstance");
     _nameMadatory = new xHtmlDiv(b, "Name*", "FriendlyName");
     _SPMadatory = new xHtmlDiv(b, "Service Provider*", "FriendlyName");
     _msgAutoSave = new xHtmlDiv(b, "SaveMessage");
     _workStatus = new xHtmlTableCell(b, "6", "TagInstance");
     _serialNoLink = new xHtmlHyperlink(b, "21", "TagInstance");
     _verifySerialNo = new xHtmlTableCell(b, "3", "TagInstance");
     _verifyAlertText = new xHtmlDiv(b, "AlertText");
     _Okbtn = new xHtmlInputButton(b, "Ok", "DisplayText");
     _productName = new xHtmlEdit(b, "ProductName");
     _ItemNotFoundWin = new xHtmlDiv(b, "ItemNotFoundwindow");
     _canclebtn = new xHtmlInputButton(b, "Cancel", "DisplayText");
     _deletebtn = new xHtmlImage(b,"imgTrash");
     _selectItem = new xHtmlCheckBox(b, "16", "TagInstance");
     _deleteWin = new xHtmlDiv(b, "DeleteConfirmationWnd");
     _yesbtn = new xHtmlInputButton(b, "Yes", "DisplayText");
     _nobtn = new xHtmlInputButton(b, "No", "DisplayText");
 }
コード例 #3
0
 public GoogleHomePage(xBrowser b)
 {
     _browser = b;
     _searchBox = new xHtmlEdit(b, "lst-ib");
     _searchBtn = new xHtmlButton(b, "btnG", "Name");
 }