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

            return(base.GetCopyWithoutParent(element));
        }
Example #2
0
        public override WebElementInfo GetCopyWithoutParent(WebElementInfo webElementInfo = null)
        {
            var element = webElementInfo as WebContextInfo
                          ?? new WebContextInfo();

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

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

            element.TreePathToInnerElement = TreePathToInnerElement;

            return(base.GetCopyWithoutParent(element));
        }
Example #5
0
        public override WebElementInfo GetCopyWithoutParent(WebElementInfo webElementInfo = null)
        {
            var element = webElementInfo as WebElementReference ??
                          new WebElementReference();

            element.TreePathToReferencedElement = TreePathToReferencedElement;

            return(base.GetCopyWithoutParent(element));
        }
Example #6
0
        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));
        }
        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);
        }
Example #8
0
 public static WebElementInfo GetCopyWithResolvedDynamicLocator(
     this WebElementInfo elementInfo,
     IDynamicWebLocatorResolver locatorResolver,
     params (string parName, object parValue)[] values)