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 +6 -0
- data/features/html/modal.html +5 -4
- data/features/step_definitions/modal_dialog_steps.rb +5 -5
- data/features/support/env.rb +1 -1
- data/iemodal.gemspec +2 -2
- data/lib/iemodal.rb +1 -1
- data/lib/iemodal/version.rb +1 -1
- metadata +4 -2
data/ChangeLog
CHANGED
data/features/html/modal.html
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
<html>
|
2
2
|
<head>
|
3
|
-
<title>
|
4
|
-
|
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
|
-
|
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
|
-
|
49
|
-
|
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
|
-
|
60
|
+
page.close_window
|
61
61
|
end
|
62
62
|
|
63
63
|
on_page ModalPage do |page|
|
64
|
-
page.attach_to_window(:
|
64
|
+
page.attach_to_window(:url => 'modal.html')
|
65
65
|
end
|
66
66
|
end
|
data/features/support/env.rb
CHANGED
data/iemodal.gemspec
CHANGED
@@ -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}
|
data/lib/iemodal.rb
CHANGED
@@ -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
|
data/lib/iemodal/version.rb
CHANGED
metadata
CHANGED
@@ -2,15 +2,16 @@
|
|
2
2
|
name: iemodal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
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-
|
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: []
|