public override WebElementInfo GetCopyWithoutParent(WebElementInfo webElementInfo = null)
        {
            var element = webElementInfo as DropDownElementInfo
                          ?? new DropDownElementInfo();

            return(base.GetCopyWithoutParent(element));
        }
Esempio n. 2
0
        public override WebElementInfo GetCopyWithoutParent(WebElementInfo webElementInfo = null)
        {
            var element = webElementInfo as RadioGroupElementInfo
                          ?? new RadioGroupElementInfo();

            return(base.GetCopyWithoutParent(element));
        }
Esempio n. 3
0
        public override WebElementInfo GetCopyWithoutParent(WebElementInfo webElementInfo = null)
        {
            var element = webElementInfo as WebContext
                          ?? new WebContext();

            return(base.GetCopyWithoutParent(element));
        }
        public override WebElementInfo GetCopyWithoutParent(WebElementInfo webElementInfo = null)
        {
            var element = webElementInfo as CombinedWebElementInfo
                          ?? new CombinedWebElementInfo();

            element.Elements = Elements?.Select(e => e.GetCopyWithoutParent())
                               .ToList();
            element.Elements.ForEach(e => e.Parent = element);

            return(base.GetCopyWithoutParent(element));
        }
Esempio n. 5
0
        public virtual WebElementInfo GetCopyWithoutParent(WebElementInfo webElementInfo = null)
        {
            if (webElementInfo == null)
            {
                webElementInfo = new WebElementInfo();
            }

            webElementInfo.Name        = Name;
            webElementInfo.Description = Description;
            webElementInfo.ElementType = ElementType;
            webElementInfo.InnerKey    = InnerKey;
            webElementInfo.IsKey       = IsKey;
            webElementInfo.Locator     = Locator?.GetCopy();
            webElementInfo.Tags        = Tags?.ToList();

            return(webElementInfo);
        }