Start a web sever: >>> import webserve >>> webserve.start() Launch the browser and open the test page: >>> from icedriver import Browser >>> b = Browser() >>> b.goto("http://localhost:8080/system/bho-tests.html") Call some JavaScript to test the Ice browser extension. (See bho-tests.html to see the exact call.) >>> b.script("callHelloWorld()") Warning: Unexpected dialog box! Testing more JavaScript: >>> b.script("callShowMessage()") Warning: Unexpected dialog box! Cleaning everything up: >>> b.quit() >>> webserve.stop()