MCPcopy Create free account
hub / github.com/cztomczak/cefpython / OnLoadEnd

Method OnLoadEnd

unittests/_common.py:202–215  ·  view source on GitHub ↗
(self, browser, frame, http_code, **_)

Source from the content-addressed store, hash-verified

200 self.test_case.assertEqual(browser.GetUrl(), self.datauri)
201
202 def OnLoadEnd(self, browser, frame, http_code, **_):
203 # OnLoadEnd should be called only once
204 self.test_case.assertFalse(self.OnLoadEnd_True)
205 self.OnLoadEnd_True = True
206 self.test_case.assertEqual(http_code, 200)
207 self.frame_source_visitor = FrameSourceVisitor(self, self.test_case)
208 frame.GetSource(self.frame_source_visitor)
209 browser.ExecuteJavascript("print('LoadHandler.OnLoadEnd() ok')")
210
211 subtest_message("Executing callbacks registered with on_load_end()")
212 global g_on_load_end_callbacks
213 for callback_data in g_on_load_end_callbacks:
214 callback_data[0](*callback_data[1])
215 del g_on_load_end_callbacks
216
217 def OnLoadingStateChange(self, browser, is_loading, can_go_back,
218 can_go_forward, **_):

Callers

nothing calls this directly

Calls 2

FrameSourceVisitorClass · 0.85
subtest_messageFunction · 0.85

Tested by

no test coverage detected