Ejemplo n.º 1
0
        public string GetAttributeValue(string attributeName, string elementXPath, CiscoWebExIFrameArguments search)
        {
            var element = GetElementInFrame(new CiscoWebExCommandArguments()
            {
                By           = new TextStructure("xpath"),
                IFrameBy     = search.IFrameBy,
                IFrameSearch = search.IFrameSearch,
                Search       = new TextStructure(elementXPath),
            }, search.Timeout.Value);
            var res = element?.GetAttribute(attributeName) ?? string.Empty;

            if (!string.IsNullOrEmpty(search.IFrameSearch?.Value))
            {
                webDriver.SwitchTo().DefaultContent();
            }
            return(res);
        }
Ejemplo n.º 2
0
 public string GetHtml(CiscoWebExIFrameArguments search)
 {
     return(GetAttributeValue("outerHTML", "//html", search));
 }