MCPcopy Create free account
hub / github.com/PyQt5/PyQt / onLoadProgress

Method onLoadProgress

QWebEngineView/SetCookies.py:68–71  ·  view source on GitHub ↗
(self, progress)

Source from the content-addressed store, hash-verified

66 self.load(QUrl('https://pyqt.site'))
67
68 def onLoadProgress(self, progress):
69 if progress == 100:
70 # 测试获取cookie
71 self.page().runJavaScript('alert(document.cookie);')
72
73 def initCookies(self):
74 for cookie in cookies:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected