rwebspec 1.8.1 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/Rakefile +1 -1
- data/lib/rwebspec/driver.rb +5 -0
- data/lib/rwebspec/web_browser.rb +6 -1
- data/lib/rwebspec.rb +1 -1
- metadata +4 -4
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -70,7 +70,7 @@ end
|
|
70
70
|
spec = Gem::Specification.new do |s|
|
71
71
|
s.platform= Gem::Platform::RUBY
|
72
72
|
s.name = "rwebspec"
|
73
|
-
s.version = "1.8.
|
73
|
+
s.version = "1.8.2"
|
74
74
|
s.summary = "Executable functional specification for web applications in RSpec syntax and Watir"
|
75
75
|
# s.description = ""
|
76
76
|
|
data/lib/rwebspec/driver.rb
CHANGED
@@ -839,6 +839,11 @@ module RWebSpec
|
|
839
839
|
end
|
840
840
|
end
|
841
841
|
|
842
|
+
# Watir 1.9 way of handling javascript dialog
|
843
|
+
def javascript_dialog
|
844
|
+
@web_browser.javascript_dialog
|
845
|
+
end
|
846
|
+
|
842
847
|
def select_file_for_upload(file_field_name, file_path)
|
843
848
|
if is_windows?
|
844
849
|
normalized_file_path = file_path.gsub("/", "\\")
|
data/lib/rwebspec/web_browser.rb
CHANGED
@@ -580,7 +580,12 @@ module RWebSpec
|
|
580
580
|
normalized_file_path = RUBY_PLATFORM.downcase.include?("mingw") ? file_path.gsub("/", "\\") : file_path
|
581
581
|
file_field(:name, file_field).set(normalized_file_path)
|
582
582
|
end
|
583
|
-
|
583
|
+
|
584
|
+
# Watir 1.9
|
585
|
+
def javascript_dialog
|
586
|
+
@browser.javascript_dialog
|
587
|
+
end
|
588
|
+
|
584
589
|
def start_window(url = nil)
|
585
590
|
@browser.start_window(url);
|
586
591
|
end
|
data/lib/rwebspec.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rwebspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 51
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 1.8.
|
9
|
+
- 2
|
10
|
+
version: 1.8.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Zhimin Zhan
|
@@ -15,7 +15,7 @@ autorequire: rwebspec
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-07-06 00:00:00 +10:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|