Skip to content

Commit e3b5951

Browse files
committed
add ide type example tests; adding intellij source folders for ide
1 parent 64c1ef4 commit e3b5951

File tree

5 files changed

+82
-1
lines changed

5 files changed

+82
-1
lines changed

ide/ide.iml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
<module type="WEB_MODULE" version="4">
33
<component name="NewModuleRootManager" inherit-compiler-output="true">
44
<exclude-output />
5-
<content url="file://$MODULE_DIR$" />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/main/src" isTestSource="false" />
7+
<sourceFolder url="file://$MODULE_DIR$/main/test" isTestSource="true" />
8+
</content>
69
<orderEntry type="sourceFolder" forTests="false" />
710
</component>
811
<component name="sonarModuleSettings">
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<html>
2+
<head>
3+
<title>Form Fields</title>
4+
</head>
5+
<body>
6+
<form id="some-form">
7+
<input type="text" id="field-text" name="field-text" />
8+
<input type="password" id="field-password" name="field-password" />
9+
</form>
10+
</body>
11+
</html>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<html>
2+
<head>
3+
<title>Uploads</title>
4+
</head>
5+
<body>
6+
<form id="upload-form">
7+
<input type="file" id="uploaded-file" name="uploaded-file" />
8+
</form>
9+
</body>
10+
</html>

ide/main/test/actions/type.html

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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="chrome://selenium-ide/content/tests/functional/aut/uploads.html" />
7+
<title>New Test</title>
8+
</head>
9+
<body>
10+
<table cellpadding="1" cellspacing="1" border="1">
11+
<thead>
12+
<tr><td rowspan="1" colspan="3">New Test</td></tr>
13+
</thead><tbody>
14+
<tr>
15+
<td>open</td>
16+
<td>chrome://selenium-ide/content/tests/functional/aut/uploads.html</td>
17+
<td></td>
18+
</tr>
19+
<tr>
20+
<td>type</td>
21+
<td>id=uploaded-file</td>
22+
<td>/some/absolute/path</td>
23+
</tr>
24+
<tr>
25+
<td>verifyValue</td>
26+
<td>id=uploaded-file</td>
27+
<td>/some/absolute/path</td>
28+
</tr>
29+
<tr>
30+
<td>open</td>
31+
<td>chrome://selenium-ide/content/tests/functional/aut/form-fields.html</td>
32+
<td></td>
33+
</tr>
34+
<tr>
35+
<td>type</td>
36+
<td>id=field-text</td>
37+
<td>test</td>
38+
</tr>
39+
<tr>
40+
<td>verifyValue</td>
41+
<td>id=field-text</td>
42+
<td>test</td>
43+
</tr>
44+
<tr>
45+
<td>type</td>
46+
<td>id=field-password</td>
47+
<td>password</td>
48+
</tr>
49+
<tr>
50+
<td>verifyValue</td>
51+
<td>id=field-password</td>
52+
<td>password</td>
53+
</tr>
54+
</tbody></table>
55+
</body>
56+
</html>

ide/main/test/testsuite.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<tr><td><b>Test Suite</b></td></tr>
1111
<tr><td><a href="locators/css.html">locators - css</a></td></tr>
1212
<tr><td><a href="locators/regexp.html">locators - regexp</a></td></tr>
13+
<tr><td><a href="actions/type.html">actions - type</a></td></tr>
1314
<tr><td><a href="checks/text.html">checks - text</a></td></tr>
1415
<tr><td><a href="checks/visibility.html">checks - visibility</a></td></tr>
1516
<tr><td><a href="checks/checked.html">checks - checked</a></td></tr>

0 commit comments

Comments
 (0)