private Act getActLink(IWebElement currentElement) { ActLink al = new ActLink(); setActLocator(currentElement, al); al.Value = currentElement.Text; return(al); }
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); }