The loadFinished
certainly is emitted. But the test
slot will never be called, because it gets deleted immediately after it is connected. This is because you're allowing the instance of WebPageProcessor
to be garbage-collected once __init__
has returned.
Try this instead:
self.bot = WebPageProcessor(self.browser)