예제 #1
0
        private Act getActButton(IWebElement currentElement)
        {
            ActButton act    = new ActButton();
            string    locVal = currentElement.GetAttribute("id");

            act.LocateBy    = eLocateBy.ByID;
            act.LocateValue = locVal;
            return(act);
        }
예제 #2
0
        private void AddActButton(ActButton act)
        {
            string s = GetDriverfindElem(act.LocateBy, act.LocateValue);

            switch (act.ButtonAction)
            {
            case ActButton.eButtonAction.Click:
                s += ".Click()";
                break;

            default:
                //temp to show something
                s += "." + Missing + act.ButtonAction + " " + act.Value;
                break;
            }
            s += ";";
            WriteLine(s);
        }