public string GetAttributeValue(string attributeName, string elementXPath, ChinagriIFrameArguments search)
        {
            var element = GetElementInFrame(new ChinagriCommandArguments()
            {
                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);
        }
 public string GetHtml(ChinagriIFrameArguments search)
 {
     return(GetAttributeValue("outerHTML", "//html", search));
 }