bauxite 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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"
@@ -0,0 +1,7 @@
1
+ <html>
2
+ <body>
3
+ <form action="page2.html" method="GET">
4
+ <input type="text" name="q"/>
5
+ </form>
6
+ </body>
7
+ </html>
@@ -0,0 +1,5 @@
1
+ <html>
2
+ <body onload="document.getElementById('h').setAttribute('value', window.location.href)">
3
+ <input type="text" id="h"/>
4
+ </body>
5
+ </html>
data/test/submit.bxt ADDED
@@ -0,0 +1,4 @@
1
+ open "file://${__DIR__}/submit/page.html"
2
+ write name=q "Hello World"
3
+ submit name=q
4
+ assert h "\?q=Hello\+World$"
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.1
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