public override bool Execute(Command _com) { fakeDb DBase = new fakeDb(); string strType = DBase.GetList(_com.getObject())[0]; string strFirst = DBase.GetList(_com.getObject())[1]; string strSecond = DBase.GetList(_com.getObject())[2]; string strThird = DBase.GetList(_com.getObject())[3]; string strFourth = DBase.GetList(_com.getObject())[4]; IE Iexp = Singleton.Instance("i").getIE(); if (String.Compare(strType, "FRbNA_LIbUR") == 0) { Iexp.Frame(Find.ByName(strFirst)).Link(Find.ByUrl(strSecond)).Click(); } else if (String.Compare(strType, "FRbNA_LIbNA") == 0) { Iexp.Frame(Find.ByName(strFirst)).Link(Find.ByName(strSecond)).Click(); } else if (String.Compare(strType, "FRbNA_FObNA_LIbID") == 0) { Iexp.Frame(Find.ByName(strFirst)).Form(Find.ByName(strSecond)).Link(Find.ById(strThird)).Click(); } else if (String.Compare(strType, "FRbNA_FObNA_BUbID") == 0) { Iexp.Frame(Find.ByName(strFirst)).Form(Find.ByName(strSecond)).Button(Find.ById(strThird)).Click(); } else if (String.Compare(strType, "FRbNA_FRbNA_FObNA_CHbNA") == 0) { //Iexp.Frame(Find.ByName(strFirst)).Frame(Find.ByName(strSecond)).Form(Find.ByName(strThird)).CheckBox(Find.ByName(strFourth)).Checked = true; //Iexp.Frame(Find.ByName(strFirst)).Form(Find.ByName(strThird)).Table(Find.ByName("scrollTable")).CheckBox(Find.ByName(strFourth)).Checked = true; Iexp.Frame(Find.ByName("functionFrame")).CheckBox(Find.ByName("Sel0")).Checked = true; } return(true); }
public override bool Execute(Command _com) { fakeDb DBase = new fakeDb(); string strType = DBase.GetList(_com.getObject())[0]; string strFirst = DBase.GetList(_com.getObject())[1]; string strSecond = DBase.GetList(_com.getObject())[2]; string strThird = DBase.GetList(_com.getObject())[3]; string strFourth = DBase.GetList(_com.getObject())[4]; IE Iexp = Singleton.Instance("i").getIE(); if (String.Compare(strType, "FRbNA_LIbUR") == 0) { Iexp.Frame(Find.ByName(strFirst)).Link(Find.ByUrl(strSecond)).Click(); } else if (String.Compare(strType, "FRbNA_LIbNA") == 0) { Iexp.Frame(Find.ByName(strFirst)).Link(Find.ByName(strSecond)).Click(); } else if (String.Compare(strType, "FRbNA_FObNA_LIbID") == 0) { Iexp.Frame(Find.ByName(strFirst)).Form(Find.ByName(strSecond)).Link(Find.ById(strThird)).Click(); } else if (String.Compare(strType, "FRbNA_FObNA_BUbID") == 0) { Iexp.Frame(Find.ByName(strFirst)).Form(Find.ByName(strSecond)).Button(Find.ById(strThird)).Click(); } else if (String.Compare(strType, "FRbNA_FRbNA_FObNA_CHbNA") == 0) { //Iexp.Frame(Find.ByName(strFirst)).Frame(Find.ByName(strSecond)).Form(Find.ByName(strThird)).CheckBox(Find.ByName(strFourth)).Checked = true; //Iexp.Frame(Find.ByName(strFirst)).Form(Find.ByName(strThird)).Table(Find.ByName("scrollTable")).CheckBox(Find.ByName(strFourth)).Checked = true; Iexp.Frame(Find.ByName("functionFrame")).CheckBox(Find.ByName("Sel0")).Checked = true; } return true; }
public override bool Execute(Command _com) { fakeDb DBase = new fakeDb(); Singleton.Instance("i").getIE().Frame(Find.ByName(DBase.GetList(_com.getObject())[1])).TextField(Find.ByName(DBase.GetList(_com.getObject())[2])).TypeText("kaseya"); return(true); }
public override bool Execute(Command _com) { fakeDb DBase = new fakeDb(); Singleton.Instance("i").getIE().Frame(Find.ByName(DBase.GetList(_com.getObject())[1])).TextField(Find.ByName(DBase.GetList(_com.getObject())[2])).TypeText("kaseya"); return true; }