Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Deciding by PySide documentation for <a href="http://srinikom.github.io/pyside-docs/PySide/QtWebKit/QWebFrame.html#PySide.QtWebKit.PySide.QtWebKit.QWebFrame.evaluateJavaScript" rel="nofollow"><code>QWebFrame.evaluateJavaScript</code></a>, it...</p> <blockquote> <p>Evaluates the JavaScript defined by scriptSource using this frame as context and returns the result of the last executed statement.</p> </blockquote> <p>Se definitely it should be returning something from the JS.</p> <p>Therefore, the only way to get an idea why you're getting <code>None</code> out of that method invocation, is to know what is the actual value of the "last executed statement" on the JS side. (As a side note, it's possible that the JS side <em>is</em> actually returning a <code>null</code> or <code>undefined</code> value, which would be correctly mapped to Python as <code>None</code> and printed as "None".)</p> <p>I propose you first try to execute a <strong>very very simple snippet of Javascript</strong> that returns a constant hardcoded value known to you, and see if that works out. If the problem persists, I would first suggest solving it on that very very simple snippet, and only once that's working, moving on to your real Javascript code.</p> <p>The lesson of the story is that debugging should start by reducing the problem incrementally so that at some point the problem disappears, and then working out the exact moment that it appears again. Otherwise you're just fighting something you haven't even found/seen.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload