bauxite 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/Bauxite/Action.html +102 -1
- data/doc/Bauxite/ActionModule.html +1 -1
- data/doc/Bauxite/Application.html +1 -1
- data/doc/Bauxite/Context.html +1 -1
- data/doc/Bauxite/Errors/AssertionError.html +1 -1
- data/doc/Bauxite/Errors/FileNotFoundError.html +1 -1
- data/doc/Bauxite/Errors/FormatError.html +1 -1
- data/doc/Bauxite/Errors.html +1 -1
- data/doc/Bauxite/Loggers/CompositeLogger.html +1 -1
- data/doc/Bauxite/Loggers/EchoLogger.html +1 -1
- data/doc/Bauxite/Loggers/FileLogger.html +1 -1
- data/doc/Bauxite/Loggers/NullLogger.html +1 -1
- data/doc/Bauxite/Loggers/TerminalLogger.html +1 -1
- data/doc/Bauxite/Loggers/XtermLogger.html +1 -1
- data/doc/Bauxite/Loggers.html +1 -1
- data/doc/Bauxite/Parser.html +1 -1
- data/doc/Bauxite/ParserModule.html +1 -1
- data/doc/Bauxite/Selector.html +85 -1
- data/doc/Bauxite/SelectorModule.html +1 -1
- data/doc/Bauxite.html +1 -1
- data/doc/README_md.html +1 -1
- data/doc/created.rid +46 -43
- data/doc/index.html +1 -1
- data/doc/js/jquery.js +18 -4
- data/doc/js/search_index.js +1 -1
- data/doc/table_of_contents.html +63 -48
- data/lib/bauxite/actions/select.rb +48 -0
- data/lib/bauxite/actions/submit.rb +37 -0
- data/lib/bauxite/selectors/smart.rb +74 -0
- data/lib/bauxite.rb +1 -1
- data/test/select/page.html +9 -0
- data/test/select.bxt +9 -0
- data/test/smart_selector/page.html +13 -0
- data/test/smart_selector.bxt +11 -0
- data/test/submit/page.html +7 -0
- data/test/submit/page2.html +5 -0
- data/test/submit.bxt +4 -0
- metadata +11 -1
@@ -0,0 +1,13 @@
|
|
1
|
+
<html>
|
2
|
+
<body>
|
3
|
+
<input type="text" id="d89e554c-dc51-41e7-a456-ab6e9e67f899-By-id-suffix" value="By id suffix"/>
|
4
|
+
<input type="text" name="By-name" value="By name"/>
|
5
|
+
<input type="text" class="By-class" value="By class"/>
|
6
|
+
<input type="text" id="d89e554c-dc51-41e7-a456-ab6e9e67f899-By-id-fragment-5e83eee4-fc87-4778-b0b3-5e1551d002a5" value="By id fragment"/>
|
7
|
+
<input type="text" placeholder="By placeholder" value="By placeholder"/>
|
8
|
+
<label>By label parent<input type="text" value="By label parent"/></label>
|
9
|
+
<div><label for="my_input">By label sibling</label><input id="my_input" type="text" value="By label sibling"/></div>
|
10
|
+
<input type="radio" name="radio" value="By radio value"/>
|
11
|
+
<input type="checkbox" name="checkbox" value="By checkbox value"/>
|
12
|
+
</body>
|
13
|
+
</html>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
open "file://${__DIR__}/smart_selector/page.html"
|
2
|
+
|
3
|
+
assert "smart=By-id-suffix" "By id suffix"
|
4
|
+
assert "smart=By-name" "By name"
|
5
|
+
assert "smart=By-class" "By class"
|
6
|
+
assert "smart=By-id-fragment" "By id fragment"
|
7
|
+
assert "smart=By placeholder" "By placeholder"
|
8
|
+
assert "smart=By label sibling" "By label sibling"
|
9
|
+
assert "smart=By label parent" "By label parent"
|
10
|
+
assert "smart=By radio value" "By radio value"
|
11
|
+
assert "smart=By checkbox value" "By checkbox value"
|
data/test/submit.bxt
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bauxite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patricio Zavolinsky
|
@@ -129,9 +129,11 @@ files:
|
|
129
129
|
- lib/bauxite/actions/reset.rb
|
130
130
|
- lib/bauxite/actions/return.rb
|
131
131
|
- lib/bauxite/actions/ruby.rb
|
132
|
+
- lib/bauxite/actions/select.rb
|
132
133
|
- lib/bauxite/actions/set.rb
|
133
134
|
- lib/bauxite/actions/source.rb
|
134
135
|
- lib/bauxite/actions/store.rb
|
136
|
+
- lib/bauxite/actions/submit.rb
|
135
137
|
- lib/bauxite/actions/test.rb
|
136
138
|
- lib/bauxite/actions/tryload.rb
|
137
139
|
- lib/bauxite/actions/wait.rb
|
@@ -154,6 +156,7 @@ files:
|
|
154
156
|
- lib/bauxite/selectors/attr.rb
|
155
157
|
- lib/bauxite/selectors/default.rb
|
156
158
|
- lib/bauxite/selectors/frame.rb
|
159
|
+
- lib/bauxite/selectors/smart.rb
|
157
160
|
- test/alias.bxt
|
158
161
|
- test/assertv.bxt
|
159
162
|
- test/delay.bxt
|
@@ -177,9 +180,16 @@ files:
|
|
177
180
|
- test/parsers/page.html
|
178
181
|
- test/ruby.bxt
|
179
182
|
- test/ruby/custom.rb
|
183
|
+
- test/select.bxt
|
184
|
+
- test/select/page.html
|
180
185
|
- test/selectors.bxt
|
181
186
|
- test/selectors/page.html
|
187
|
+
- test/smart_selector.bxt
|
188
|
+
- test/smart_selector/page.html
|
182
189
|
- test/stdin.bxt
|
190
|
+
- test/submit.bxt
|
191
|
+
- test/submit/page.html
|
192
|
+
- test/submit/page2.html
|
183
193
|
- test/test.bxt.manual
|
184
194
|
- test/test/test1.bxt
|
185
195
|
- test/test/test2.bxt
|