Esempio n. 1
0
        internal void RefreshAttributesDictionary()
        {
            if (_parentPage == null)
            {
                return;
            }
            BrowserCommand command = new BrowserCommand(BrowserCommand.FunctionNames.GetElementAttributes);

            command.Description = "GetElementAttributes";
            command.Target      = this.BuildBrowserCommandTarget();
            command.Handler.RequiresElementFound = true;
            string      data        = _parentPage.ExecuteCommand(this, command).Data;
            HtmlElement tempElement = HtmlElement.Create(data, _parentPage, false);

            this._attributeDictionary = new HtmlAttributeDictionary(tempElement._attributeDictionary);
        }