My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

Start a web sever:

>>> import webserve
>>> webserve.start()


Launch a browser and open the test page:

>>> from icedriver import Browser
>>> b = Browser()
>>> b.goto("http://localhost:8080/system/bho-tests.html")


An alert should show up, but ice driver should be able to close it:

>>> b.alert("Hello, Alert!")
Warning: Unexpected dialog box!


Now call some JavaScript which will test the Ice extension.
See bho-tests.html to see the exact call.)

>>> b.script("callShowMessage()")
Warning: Unexpected dialog box!


Another test of the ice browser extension:

>>> b.script("callHelloWorld()")
Warning: Unexpected dialog box!


Cleanup everything up:

>>> b.quit()
>>> webserve.stop()
Show details Hide details

Change log

r30 by jrhuggins on Jun 26, 2008   Diff
Adding a robust system doctest for Ice.
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 777 bytes, 37 lines
Hosted by Google Code