gwt_widgets 0.0.3 → 0.0.4

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.
data/ChangeLog CHANGED
@@ -1,3 +1,5 @@
1
+ === Release 0.0.4 / 2013-3-20
2
+ Add support for Selenium Webdriver / Page-Object platform
1
3
 
2
4
  === Release 0.0.3 / 2013-3-19
3
5
  Add Date Picker Support
data/Rakefile CHANGED
@@ -23,7 +23,7 @@ namespace :features do
23
23
  end
24
24
 
25
25
  desc 'Run all features'
26
- task :all => [:watir_webdriver] #, :selenium_webdriver]
26
+ task :all => [:watir_webdriver, :selenium_webdriver]
27
27
  end
28
28
 
29
29
  desc 'Run all specs and cukes'
@@ -2,7 +2,7 @@
2
2
  Given /^I am on the showcase date picker page$/ do
3
3
  visit DatePickerPage
4
4
  @current_page.wait_until do
5
- @current_page.browser.text.include? 'Permanent DatePicker:'
5
+ @current_page.text.include? 'Permanent DatePicker:'
6
6
  end
7
7
  end
8
8
 
@@ -8,8 +8,4 @@ class DatePickerPage
8
8
  datepicker_element
9
9
  end
10
10
 
11
- gwt_datebox(:datebox, :class => 'gwt-DateBox', :popup => true)
12
- def datebox
13
- datebox_element
14
- end
15
11
  end
@@ -3,7 +3,7 @@ class DialogBoxPage
3
3
 
4
4
  page_url "http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwDialogBox"
5
5
 
6
- button(:show_dialog, :text => 'Show Dialog Box')
6
+ button(:show_dialog, :value => 'Show Dialog Box')
7
7
 
8
8
  gwt_dialogbox(:dialogbox, :class => 'gwt-DialogBox')
9
9
 
@@ -1,15 +1,16 @@
1
- class GwtWidgets::DatePicker < PageObject::Elements::TextField
1
+ class GwtWidgets::DatePicker < PageObject::Elements::Table
2
2
 
3
3
  def choose_day (day)
4
- div_element(:class => 'datePickerDay', :text => day.to_s).click
4
+ #div_element(:class => 'datePickerDay', :text => day.to_s).click
5
+ div_elements(:class => 'datePickerDay')[day.to_i + 4].click
5
6
  end
6
7
 
7
8
  def chosen_day
8
- div_element(:class => 'datePickerDay datePickerDayIsValue').text
9
+ div_element(:class => 'datePickerDayIsValue').text
9
10
  end
10
11
 
11
12
  def highlighted_day
12
- div_element(:class => 'datePickerDay datePickerDayIsToday').text
13
+ div_element(:class => 'datePickerDayIsToday').text
13
14
  end
14
15
 
15
16
 
@@ -5,7 +5,7 @@ class GwtWidgets::DialogBox < PageObject::Elements::Div
5
5
  end
6
6
 
7
7
  def content
8
- div_element(:class => 'dialogMiddleCenterInner dialogContent').text
8
+ div_element(:class => 'dialogContent').text
9
9
  end
10
10
 
11
11
  def close
@@ -1,3 +1,3 @@
1
1
  module GwtWidgets
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gwt_widgets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-19 00:00:00.000000000 Z
12
+ date: 2013-03-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: page-object
@@ -168,7 +168,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  segments:
170
170
  - 0
171
- hash: 1353361856140982205
171
+ hash: 3910878368132772078
172
172
  required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  none: false
174
174
  requirements:
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  version: '0'
178
178
  segments:
179
179
  - 0
180
- hash: 1353361856140982205
180
+ hash: 3910878368132772078
181
181
  requirements: []
182
182
  rubyforge_project: gwt_widgets
183
183
  rubygems_version: 1.8.25