~vasilev/psiphon/sprint3-579678

« back to all changes in this revision

Viewing changes to trunk/testing/selenium_scripts/selenium/tests/events/TestLinkEvents.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 Click Link 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 Click Link Events<br>
28
 
      </td>
29
 
    </tr>
30
 
    <tr><td>open</td><td>../tests/html/test_form_events.html</td><td>&nbsp;</td></tr>
31
 
    <tr><td>verifyValue</td><td>eventlog</td><td>&nbsp;</td></tr>
32
 
 
33
 
    <!-- Click the button -->
34
 
    <tr><td>click</td><td>theLink</td><td></td></tr>
35
 
    <tr><td>verifyValue</td><td>eventlog</td><td>{focus(theLink)} {click(theLink)}</td></tr>
36
 
    <tr><td>verifyAlert</td><td>link clicked</td><td/></tr>
37
 
 
38
 
    <!-- Perform another action to ensure that there are no more alerts -->
39
 
    <tr><td>click</td><td>theButton</td><td></td></tr>
40
 
  </tbody>
41
 
</table>
42
 
</body>
43
 
</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 Click Link 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 Click Link Events<br>
 
28
      </td>
 
29
    </tr>
 
30
    <tr><td>open</td><td>../tests/html/test_form_events.html</td><td>&nbsp;</td></tr>
 
31
    <tr><td>verifyValue</td><td>eventlog</td><td>&nbsp;</td></tr>
 
32
 
 
33
    <!-- Click the button -->
 
34
    <tr><td>click</td><td>theLink</td><td></td></tr>
 
35
    <tr><td>verifyValue</td><td>eventlog</td><td>{focus(theLink)} {click(theLink)}</td></tr>
 
36
    <tr><td>verifyAlert</td><td>link clicked</td><td/></tr>
 
37
 
 
38
    <!-- Perform another action to ensure that there are no more alerts -->
 
39
    <tr><td>click</td><td>theButton</td><td></td></tr>
 
40
  </tbody>
 
41
</table>
 
42
</body>
 
43
</html>