title: Extract specific value from chrome console log using java
body: <p>I have data that I need to extract from chromes console log using java and selenium, im using</p>
  <pre><code>LoggingPreferences logPrefs = new LoggingPreferences();
  logPrefs.enable(LogType.BROWSER, Level.ALL);
  logPrefs.enable(LogType.BROWSER, Level.parse(&quot;ALL&quot;));
  options.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);
  </code></pre>
  <p>and currently its showing in my intellij console as</p>
  <pre><code>DB432DDBCEE8E8543DDA785A9B46F11B {
  &quot;node&quot;: {
    &quot;attributes&quot;: [ &quot;src&quot;, &quot;im://launch?iss=http%3A%2F%2Fukdc1-docker-mx%3A8084%2Fimsauth%2Ffhir&amp;launch=%7B%22authToken%22%3A%22eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxMTQyIiwiaWF0IjoxNjUxNTkzMTU0LCJleHAiOjE2NTE2Nzk1N...&quot;, &quot;style&quot;, &quot;display: none;&quot; ],
    &quot;backendNodeId&quot;: 299,
    &quot;childNodeCount&quot;: 0,
    &quot;localName&quot;: &quot;iframe&quot;,
    &quot;nodeId&quot;: 250,
    &quot;nodeName&quot;: &quot;IFRAME&quot;,
    &quot;nodeType&quot;: 1,
    &quot;nodeValue&quot;: &quot;&quot;
  },
  &quot;parentNodeId&quot;: 86,
  &quot;previousNodeId&quot;: 244
  }
  </code></pre>
  <p>and im trying to get the attributes value and use it as a string, I've tried</p>
  <pre><code>logPrefs().toString;
  logPrefs().toJson;
  </code></pre>
  <p>but cant get past it just showing in teh console, any ideas?</p>