More script cleanup
[mediagoblin-automation:mediagoblin-selenium.git] / tests / src / test_UploadJPEG.html
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head profile="http://selenium-ide.openqa.org/profiles/test-case">
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <link rel="selenium.base" href="http://127.0.0.1:6543" />
7 <title>Upload JPEG</title>
8 </head>
9 <body>
10 <table cellpadding="1" cellspacing="1" border="1">
11 <thead>
12 <tr><td rowspan="1" colspan="3">Upload JPEG</td></tr>
13 </thead><tbody>
14 <tr>
15         <td>open</td>
16         <td>/</td>
17         <td></td>
18 </tr>
19 <tr>
20         <td>click</td>
21         <td>css=div.button_action.header_dropdown_down</td>
22         <td></td>
23 </tr>
24 <tr>
25         <td>assertElementPresent</td>
26         <td>link=Add media</td>
27         <td></td>
28 </tr>
29 <tr>
30         <td>clickAndWait</td>
31         <td>link=Add media</td>
32         <td></td>
33 </tr>
34 <tr>
35         <td>verifyTextPresent</td>
36         <td>Add your media</td>
37         <td></td>
38 </tr>
39 <tr>
40         <td>assertElementPresent</td>
41         <td>id=file</td>
42         <td></td>
43 </tr>
44 <tr>
45         <td>type</td>
46         <td>id=file</td>
47         <td>WORKING_DIRECTORY/resources/CC0_gavroche.jpg</td>
48 </tr>
49 <tr>
50         <td>assertElementPresent</td>
51         <td>id=title</td>
52         <td></td>
53 </tr>
54 <tr>
55         <td>type</td>
56         <td>id=title</td>
57         <td>Gavroche Test</td>
58 </tr>
59 <tr>
60         <td>type</td>
61         <td>id=description</td>
62         <td>This is automatically uploaded by the Selenium scripts</td>
63 </tr>
64 <tr>
65         <td>type</td>
66         <td>id=tags</td>
67         <td>selenium testing,gavroche</td>
68 </tr>
69 <tr>
70         <td>select</td>
71         <td>id=license</td>
72         <td>label=CC0 1.0</td>
73 </tr>
74 <tr>
75         <td>assertElementPresent</td>
76         <td>id=license</td>
77         <td></td>
78 </tr>
79 <tr>
80         <td>assertElementPresent</td>
81         <td>id=tags</td>
82         <td></td>
83 </tr>
84 <tr>
85         <td>assertElementPresent</td>
86         <td>css=input.button_form</td>
87         <td></td>
88 </tr>
89 <tr>
90         <td>clickAndWait</td>
91         <td>css=input.button_form</td>
92         <td></td>
93 </tr>
94 <tr>
95         <td>assertElementPresent</td>
96         <td>link=Gavroche Test</td>
97         <td></td>
98 </tr>
99 </tbody></table>
100 </body>
101 </html>