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
38
39
40

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()








Show details Hide details

Change log

r32 by jrhuggins on Jun 26, 2008   Diff
Cleaned up the system test to aid
readability.
Go to: 
Project members, sign in to write a code review

Older revisions

r30 by jrhuggins on Jun 26, 2008   Diff
Adding a robust system doctest for
Ice.
All revisions of this file

File info

Size: 633 bytes, 40 lines
Hosted by Google Code