Skip to content

Commit

Permalink
Update snippets/mouse_clicks.py (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
cztomczak committed Aug 19, 2018
1 parent 5b51fc3 commit 3d0f385
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/snippets/mouse_clicks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ def main():

def click_after_1_second(browser):
print("Click after 1 second")
# Mouse move to the top-left corner of the text
browser.SendMouseMoveEvent(0, 70, False, 0)
# Left mouse button click in the top-left corner of the text
browser.SendMouseClickEvent(0, 70, cef.MOUSEBUTTON_LEFT, False, 1)
# Mouse move to the bottom-right corner of the text,
# while holding left mouse button.
browser.SendMouseMoveEvent(400, 80, False, cef.EVENTFLAG_LEFT_MOUSE_BUTTON)
# Release left mouse button
browser.SendMouseClickEvent(400, 80, cef.MOUSEBUTTON_LEFT, True, 1)
cef.PostDelayedTask(cef.TID_UI, 1000, click_after_2_seconds, browser)

Expand Down
1 change: 1 addition & 0 deletions src/cef_v59..v66_changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ NEW FEATURES
+ examples/snippets/
+ onbeforeclose.py
+ network_cookies.py
+ mouse_clicks.py

internal/cef_types.h
+ cef_log_severity_t: new key LOGSEVERITY_DEBUG (no need to expose,
Expand Down

0 comments on commit 3d0f385

Please sign in to comment.