Use mouse context menu to go Back/Forward in history navigation.
Google Search
http://www.google.com/
User agent
Popup
window.open('wxpython.html')
RequestHandler tests
See messages in the console.
OnBeforeBrowse() - navigate to see message:
wxpython.html
OnBeforeBrowse() / OnBeforeResourceLoad() - test request.GetPostData()
and request.SetPostData():
submit a form:
https://accounts.google.com/ServiceLogin,
upload a file:
http://encodable.com/uploaddemo/
OnBeforeResourceLoad() - try loading nonexistent css file locally:
LoadCssFile('nonexistent.css')
OnBeforeResourceLoad() - try replacing a resource on the fly:
LoadCssFile('replace-on-the-fly.css')
(css content: body { color: red; })
OnResourceRedirect() - try loading this url:
http://tinyurl.com/google404redirect
OnResourceResponse() - try loading nonexistent css file via http:
LoadCssFile('http://www.google.com/404.css')
OnResourceResponse() - try filtering content of the resource:
LoadCssFile('content-filter/replace-on-the-fly.css')
(new css content: body { color: green; } and body h3 { color: orange; } )
WebRequest test
See the console for messages.
external.WebRequest('https://code.google.com/robots.txt')
Frame.CallFunction() test
external.DoCallFunction()
Cookie tests
See messages in the console.
RequestHandler.GetCookieManager() - an example of having an unique
cookie manager for each browser. Visit
http://www.html-kit.com/tools/cookietester/ and set some cookie,
then go back to this page using the context menu and open a
new popup window, the cookie should not appear in the popup browser window.
CookieManager.VisitAllCookies() - visit all cookies:
external.VisitAllCookies()
(note: visit some http:// webpage first, otherwise cookie manager is not
yet created)
CookieManager.VisitUrlCookies("http://www.html-kit.com/tools/cookietester/")
- visit a subset of cookies given the url, test:
external.VisitUrlCookies()
CookieManager.SetCookie("http://www.html-kit.com/tools/cookietester/",
{name:"Created_Via_Python", value:"yeah really"}) - create the cookie:
external.SetCookie()
CookieManager.DeleteCookies() - delete the single cookie previously created
via SetCookie():
external.DeleteCookies()
DragHandler test
Try dragging a file, or a text/html fragment to the browser window
and look for the messages in the console. In the wxpython.py script see
ClientHandler.OnDragStart() and OnDragEnter().
DownloadHandler test
Try downloading this file (838 KiB):
http://cefpython.googlecode.com/files/ubuntu-wallpapers2.zip
See messages in the console.
The file will be saved in the ./downloads/ directory.