Example #1
0
        private void button6_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            auto.ButtonPressByID_Using_MainWindowName("客户对帐单", "wnd[2]/tbar[0]/btn[0]");
            //auto.ButtonPressByID(txtID.Text);
        }
Example #2
0
        private void ctnGetLabel_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto   = new SAPAuto1();
            var      output = auto.GetLabelText("作业总览", "", "", "wnd[0]/usr/lbl[64,3]");

            MessageBox.Show("label text:" + output);
        }
Example #3
0
        private void button10_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            auto.MenuSelectionByID("wnd[0]/mbar/menu[4]/menu[8]");
        }
Example #4
0
        private void button9_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            auto.TableRow_Select("wnd[1]/usr/tblSAPLAQ_INT_FUNCTIONSTCH_FUNCAREAS", "6");
        }
Example #5
0
        private void button8_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            auto.LogOnButtonClick();
        }
Example #6
0
        private void button7_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            auto.ContextMenuSelectItem("", "Spreadsheet...");
        }
Example #7
0
        private void button5_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            auto.TextInputByID(txtID.Text, txtValue.Text);
        }
Example #8
0
        private void btnClickUsingUIAutomatio_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            auto.ButtonPress_UsingUIAutomation("SAP 轻松访问", "", "Close");
        }
Example #9
0
        private void button1_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            auto.login("NRP", "100", "28066351", "Hackmeifyoucan@123", "ZH");
        }
Example #10
0
        private void button17_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            auto.ComboBox_SelectItem_Using_ItemTextcontains("wnd[0]/usr/subSUB0:SAPLMEGUI:0019/subSUB3:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1301/subSUB1:SAPLMEGUI:6000/cmbDYN_6000-LIST", "25027");
        }
Example #11
0
        private void button15_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            auto.Grid_SelectCell_AndDoubleClick("wnd[0]/usr/cntlGRID1/shellcont/shell", "0", "EBELN");//MESSTXT1
        }
Example #12
0
        private void button14_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            System.Windows.Forms.MessageBox.Show(auto.IsWindow_Exists_UsingUIAutomation_ThreeWindows("总帐科目行项目显示 总帐视图", "总帐科目 的多种选择", "总帐科目 的多种选择").ToString());
        }
Example #13
0
 private void button13_Click(object sender, EventArgs e)
 {
     SAPAuto1 auto = new SAPAuto1();
     // auto.testbusyornot();
 }
Example #14
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            System.Windows.Forms.MessageBox.Show(auto.CheckAAError_IfError_Close());
        }
Example #15
0
        private void button11_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            auto.SaveAsExcelWindow("Customer Statement for Sales Report", @"D:\Users\28066351\Documents\Projects\RPA Metabots\SAPAuto\TestSave");
        }
Example #16
0
        private void button2_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            auto.TCODEInput("ZFCN130");
        }
Example #17
0
        private void button12_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            auto.TreeView_Select("wnd[0]/shellcont/shell/shellcont[0]/shell", "000006");
        }
Example #18
0
        private void btnGetWinText_Click(object sender, EventArgs e)
        {
            SAPAuto1 auto = new SAPAuto1();

            MessageBox.Show(auto.GetWindowText("wnd[1]"));
        }