~vasilev/psiphon/sprint3-579678

« back to all changes in this revision

Viewing changes to trunk/testing/selenium_scripts/selenium/tests/events/TestTextEvents.html

  • Committer: Adam Pritchard
  • Date: 2010-07-16 19:31:33 UTC
  • mfrom: (95.1.8 testing-2.5)
  • Revision ID: adam@adampsidev-20100716193133-n6rxnrqwt68d0ck8
Made Selenium work; added some tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
 
<!--
3
 
Copyright 2004 ThoughtWorks, Inc
4
 
 
5
 
 Licensed under the Apache License, Version 2.0 (the "License");
6
 
 you may not use this file except in compliance with the License.
7
 
 You may obtain a copy of the License at
8
 
 
9
 
     http://www.apache.org/licenses/LICENSE-2.0
10
 
 
11
 
 Unless required by applicable law or agreed to in writing, software
12
 
 distributed under the License is distributed on an "AS IS" BASIS,
13
 
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 
 See the License for the specific language governing permissions and
15
 
 limitations under the License.
16
 
-->
17
 
<html>
18
 
<head>
19
 
  <meta content="text/html; charset=ISO-8859-1"
20
 
 http-equiv="content-type">
21
 
  <title>Test Type Text Events</title>
22
 
</head>
23
 
<body>
24
 
<table cellpadding="1" cellspacing="1" border="1">
25
 
  <tbody>
26
 
    <tr>
27
 
      <td rowspan="1" colspan="3">Test Type Text Events<br>
28
 
      </td>
29
 
    </tr>
30
 
    <tr>
31
 
      <td>open</td>
32
 
      <td>../tests/html/test_form_events.html</td>
33
 
      <td>&nbsp;</td>
34
 
    </tr>
35
 
    <tr>
36
 
      <td>verifyValue</td>
37
 
      <td>theTextbox</td>
38
 
      <td>&nbsp;</td>
39
 
    </tr>
40
 
    <tr>
41
 
      <td>verifyValue</td>
42
 
      <td>eventlog</td>
43
 
      <td>&nbsp;</td>
44
 
    </tr>
45
 
 
46
 
    <!-- Set the textbox value from blank -->
47
 
    <tr>
48
 
      <td>type</td>
49
 
      <td>theTextbox</td>
50
 
      <td>first value</td>
51
 
    </tr>
52
 
    <tr>
53
 
      <td>verifyValue</td>
54
 
      <td>theTextbox</td>
55
 
      <td>first value</td>
56
 
    </tr>
57
 
    <tr>
58
 
      <td>verifyValue</td>
59
 
      <td>eventlog</td>
60
 
      <td>{focus(theTextbox)} {select(theTextbox)} {change(theTextbox)}</td>
61
 
    </tr>
62
 
 
63
 
    <!-- Clear the event log, and change the value -->
64
 
    <tr>
65
 
      <td>type</td>
66
 
      <td>eventlog</td>
67
 
      <td>&nbsp;</td>
68
 
    </tr>
69
 
    <tr>
70
 
      <td>type</td>
71
 
      <td>theTextbox</td>
72
 
      <td>changed value</td>
73
 
    </tr>
74
 
    <tr>
75
 
      <td>verifyValue</td>
76
 
      <td>theTextbox</td>
77
 
      <td>changed value</td>
78
 
    </tr>
79
 
    <tr>
80
 
      <td>verifyValue</td>
81
 
      <td>eventlog</td>
82
 
      <td>{focus(theTextbox)} {select(theTextbox)} {change(theTextbox)}</td>
83
 
    </tr>
84
 
  </tbody>
85
 
</table>
86
 
</body>
87
 
</html>
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<!--
 
3
Copyright 2004 ThoughtWorks, Inc
 
4
 
 
5
 Licensed under the Apache License, Version 2.0 (the "License");
 
6
 you may not use this file except in compliance with the License.
 
7
 You may obtain a copy of the License at
 
8
 
 
9
     http://www.apache.org/licenses/LICENSE-2.0
 
10
 
 
11
 Unless required by applicable law or agreed to in writing, software
 
12
 distributed under the License is distributed on an "AS IS" BASIS,
 
13
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
14
 See the License for the specific language governing permissions and
 
15
 limitations under the License.
 
16
-->
 
17
<html>
 
18
<head>
 
19
  <meta content="text/html; charset=ISO-8859-1"
 
20
 http-equiv="content-type">
 
21
  <title>Test Type Text Events</title>
 
22
</head>
 
23
<body>
 
24
<table cellpadding="1" cellspacing="1" border="1">
 
25
  <tbody>
 
26
    <tr>
 
27
      <td rowspan="1" colspan="3">Test Type Text Events<br>
 
28
      </td>
 
29
    </tr>
 
30
    <tr>
 
31
      <td>open</td>
 
32
      <td>../tests/html/test_form_events.html</td>
 
33
      <td>&nbsp;</td>
 
34
    </tr>
 
35
    <tr>
 
36
      <td>verifyValue</td>
 
37
      <td>theTextbox</td>
 
38
      <td>&nbsp;</td>
 
39
    </tr>
 
40
    <tr>
 
41
      <td>verifyValue</td>
 
42
      <td>eventlog</td>
 
43
      <td>&nbsp;</td>
 
44
    </tr>
 
45
 
 
46
    <!-- Set the textbox value from blank -->
 
47
    <tr>
 
48
      <td>type</td>
 
49
      <td>theTextbox</td>
 
50
      <td>first value</td>
 
51
    </tr>
 
52
    <tr>
 
53
      <td>verifyValue</td>
 
54
      <td>theTextbox</td>
 
55
      <td>first value</td>
 
56
    </tr>
 
57
    <tr>
 
58
      <td>verifyValue</td>
 
59
      <td>eventlog</td>
 
60
      <td>{focus(theTextbox)} {select(theTextbox)} {change(theTextbox)}</td>
 
61
    </tr>
 
62
 
 
63
    <!-- Clear the event log, and change the value -->
 
64
    <tr>
 
65
      <td>type</td>
 
66
      <td>eventlog</td>
 
67
      <td>&nbsp;</td>
 
68
    </tr>
 
69
    <tr>
 
70
      <td>type</td>
 
71
      <td>theTextbox</td>
 
72
      <td>changed value</td>
 
73
    </tr>
 
74
    <tr>
 
75
      <td>verifyValue</td>
 
76
      <td>theTextbox</td>
 
77
      <td>changed value</td>
 
78
    </tr>
 
79
    <tr>
 
80
      <td>verifyValue</td>
 
81
      <td>eventlog</td>
 
82
      <td>{focus(theTextbox)} {select(theTextbox)} {change(theTextbox)}</td>
 
83
    </tr>
 
84
  </tbody>
 
85
</table>
 
86
</body>
 
87
</html>