iemodal 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ === Version 0.0.4 / 2011-09-28
2
+ Fixed botched release from Windows
3
+
4
+ === Version 0.0.3 / 2011-09-28
5
+ Increased timeout to find modal to 10 seconds
6
+
1
7
  === Version 0.0.2 / 2011-09-20
2
8
  Fixed botched release
3
9
 
@@ -1,9 +1,7 @@
1
1
  <html>
2
2
  <head>
3
- <title>modal dialog test page</title>
4
- </head>
5
- <body>
6
-
3
+ <title>Main Modal</title>
4
+
7
5
  <script type="text/javascript">
8
6
  function modal() {
9
7
  var retValue = window.showModalDialog(
@@ -11,7 +9,10 @@
11
9
  "status:no;resizable:Yes;help:no;maximize:no;minimize:no;scrollbars:no;");
12
10
  }
13
11
  </script>
12
+ </head>
13
+ <body>
14
14
 
15
+
15
16
  <input id=launch_modal_button type=button onclick='return modal();' value="Launch a modal" />
16
17
  </body>
17
18
  </html>
@@ -39,14 +39,14 @@ end
39
39
  Then /^I should be able to close the modal$/ do
40
40
  on_page ModalDialog do |page|
41
41
  page.close_window
42
- end
42
+ end
43
43
  end
44
44
 
45
45
  When /^I open another modal dialog from that one$/ do
46
46
  on_page ModalDialog do |page|
47
47
  page.modal_dialog do
48
- page.launch_another_modal
49
- end
48
+ page.launch_another_modal
49
+ end
50
50
  end
51
51
  end
52
52
 
@@ -57,10 +57,10 @@ Then /^I should be able to close both modals$/ do
57
57
 
58
58
  on_page ModalDialog do |page|
59
59
  page.attach_to_window(:title => 'Modal 1')
60
- page.close_window
60
+ page.close_window
61
61
  end
62
62
 
63
63
  on_page ModalPage do |page|
64
- page.attach_to_window(:title => 'modal dialog test page')
64
+ page.attach_to_window(:url => 'modal.html')
65
65
  end
66
66
  end
@@ -16,5 +16,5 @@ Before do
16
16
  end
17
17
 
18
18
  After do
19
- # @browser.close
19
+ @browser.close
20
20
  end
@@ -5,8 +5,8 @@ require "iemodal/version"
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "iemodal"
7
7
  s.version = IEModal::VERSION
8
- s.authors = ["Jeffrey S. Morgan"]
9
- s.email = ["jeff.morgan@leandog.com"]
8
+ s.authors = ["Jeffrey S. Morgan", "Paul Clewell"]
9
+ s.email = ["jeff.morgan@leandog.com", "paul.clewell@mrisoftware.com"]
10
10
  s.homepage = ""
11
11
  s.summary = %q{Makes it possible to interact with modal dialogs in Internet Explorer}
12
12
  s.description = %q{Makes it possible to interact with modal dialogs in Internet Explorer}
@@ -35,7 +35,7 @@ module IEModal
35
35
 
36
36
  def wait_for_new_handle(original_handles, driver)
37
37
  handles = nil
38
- wait = Selenium::WebDriver::Wait.new
38
+ wait = Selenium::WebDriver::Wait.new(:timeout => 10)
39
39
  wait.until do
40
40
  handles = driver.window_handles
41
41
  handles.size == original_handles.size + 1
@@ -1,3 +1,3 @@
1
1
  module IEModal
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -2,15 +2,16 @@
2
2
  name: iemodal
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jeffrey S. Morgan
9
+ - Paul Clewell
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
13
 
13
- date: 2011-09-20 00:00:00 Z
14
+ date: 2011-09-28 00:00:00 Z
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: page-object
@@ -48,6 +49,7 @@ dependencies:
48
49
  description: Makes it possible to interact with modal dialogs in Internet Explorer
49
50
  email:
50
51
  - jeff.morgan@leandog.com
52
+ - paul.clewell@mrisoftware.com
51
53
  executables: []
52
54
 
53
55
  extensions: []