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

Function main

examples/snippets/mouse_clicks.py:6–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def main():
7 cef.Initialize()
8 browser = cef.CreateBrowserSync(
9 url="data:text/html,<h1>Mouse clicks snippet</h1>"
10 "This text will be selected after one second.<br>"
11 "This text will be selected after two seconds.",
12 window_title="Mouse clicks")
13 browser.SetClientHandler(LifespanHandler())
14 cef.MessageLoop()
15 del browser
16 cef.Shutdown()
17
18
19def click_after_1_second(browser):

Callers 1

mouse_clicks.pyFile · 0.70

Calls 2

SetClientHandlerMethod · 0.80
LifespanHandlerClass · 0.70

Tested by

no test coverage detected