Example #1
0
        public void EditLeadObject(string cname, string fname, string lname)
        {
            EditBtnClick.Clicks();
            TypeUpdatecName.EnterText(cname);
            TypeUpdateFName.EnterText(fname);
            TypeupdateFormLastName.EnterText(lname);
            updatebtnClick.Clicks();

            /*
             * SeleniumSetMethod.Clicks(EditBtnClick);
             * SeleniumSetMethod.EnterText(TypeUpdatecName,cname);
             * SeleniumSetMethod.EnterText(TypeUpdateFName,fname);
             * SeleniumSetMethod.EnterText(TypeupdateFormLastName,lname);
             * SeleniumSetMethod.Clicks(updatebtnClick);
             *
             * EditBtnClick.Click();
             * TypeUpdatecName.Clear();
             * TypeUpdatecName.SendKeys(cname);
             *
             * TypeUpdateFName.Clear();
             * TypeUpdateFName.SendKeys(fname);
             *
             * TypeupdateFormLastName.Clear();
             * TypeupdateFormLastName.SendKeys(lname);
             * updatebtnClick.Click();*/
        }
Example #2
0
 /// <summary>
 /// button模式下的按钮事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btn_Click(object sender, EventArgs e)
 {
     EditBtnClick?.Invoke(sender, e);
 }