Exemplo n.º 1
0
        private Act getActLink(IWebElement currentElement)
        {
            ActLink al = new ActLink();

            setActLocator(currentElement, al);
            al.Value = currentElement.Text;
            return(al);
        }
Exemplo n.º 2
0
        private void AddActLink(ActLink act)
        {
            string s = GetDriverfindElem(act.LocateBy, act.LocateValue);

            switch (act.LinkAction)
            {
            case ActLink.eLinkAction.Click:
                s += ".Click()";
                break;

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