title: Here I am getting error like "unknown command: cannot call non w3c standard command while in w3c mode" while extract page attribute
body: <p>I have one web page which has HTML, javascript and iFrames. I am extracting attributes of HTML tags by below code for reference:</p>
  
  <pre><code>Dictionary&lt;string, object&gt; attributes = new Dictionary&lt;string, object&gt;();
  try
  {
     IJavaScriptExecutor javascriptDriver = (IJavaScriptExecutor)objBrowser;
     attributes = javascriptDriver.ExecuteScript("
        var items = {};   
        for (index = 0; index &lt; arguments[0].attributes.length; ++index) { 
             items[arguments[0].attributes[index].name] = arguments[0].attributes[index].value }; 
        return items;", 
     objWebElement) as Dictionary&lt;string, object&gt;;
  }
  </code></pre>
  
  <p>but I am getting error in attributes like mentioned in Title. Need help and support if anyone can help me on the same.</p>