Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
48 lines (38 loc) · 1.76 KB

File metadata and controls

48 lines (38 loc) · 1.76 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

Snippets README

Table of contents:

Hello World!

Instructions to install the cefpython3 package, clone the repository and run the javascript_bindings.py snippet:

pip install cefpython3==66.0
git clone https://github.com/cztomczak/cefpython.git
cd cefpython/examples/snippets/
python javascript_bindings.py

Snippets

Below are small code snippets that show various CEF features and are easy to understand. These are available in the examples/snippets/ directory. If looking for non-trivial examples then see the README-examples.md document.

  • cookies.py - Shows how to fetch all cookies, all cookies for a given url and how to delete a specific cookie.
  • javascript_bindings.py - Communicate between Python and Javascript asynchronously using inter-process messaging with the use of Javascript Bindings.
  • javascript_errors.py - Two ways for intercepting Javascript errors.
  • mouse_clicks.py - Perform mouse clicks and mouse movements programmatically.
  • network_cookies.py - Implement interfaces to block or allow cookies over network requests.
  • onbeforeclose.py - Implement interface to execute custom code before browser window closes.
  • ondomready.py - Execute custom Python code on a web page as soon as DOM is ready.
  • onpagecomplete.py - Execute custom Python code on a web page when page loading is complete.
  • setcookie.py - Shows how to set a cookie
  • window_size.py - Set initial window size without use of any third party GUI framework.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.