rwebspec-webdriver 0.3.6 → 0.3.7
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-webdriver.rb +1 -4
- metadata +3 -4
- data/lib/window_script_extensions.rb +0 -19
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -69,7 +69,7 @@ end
|
|
69
69
|
spec = Gem::Specification.new do |s|
|
70
70
|
s.platform= Gem::Platform::RUBY
|
71
71
|
s.name = "rwebspec-webdriver"
|
72
|
-
s.version = "0.3.
|
72
|
+
s.version = "0.3.7"
|
73
73
|
s.summary = "Executable functional specification for web applications in RSpec syntax and Selenium-WebDriver"
|
74
74
|
# s.description = ""
|
75
75
|
|
data/lib/rwebspec-webdriver.rb
CHANGED
@@ -17,7 +17,7 @@ require 'spec'
|
|
17
17
|
require 'selenium-webdriver'
|
18
18
|
|
19
19
|
unless defined? RWEBSPEC_WEBDRIVER_VERSION
|
20
|
-
RWEBSPEC_WEBDRIVER_VERSION = "0.3.
|
20
|
+
RWEBSPEC_WEBDRIVER_VERSION = "0.3.7"
|
21
21
|
end
|
22
22
|
|
23
23
|
|
@@ -49,9 +49,6 @@ require File.dirname(__FILE__) + "/rwebspec-webdriver/rspec_helper"
|
|
49
49
|
# require File.dirname(__FILE__) + "/rwebspec-webdriver/load_test_helper"
|
50
50
|
require File.dirname(__FILE__) + "/rspec_extensions"
|
51
51
|
require File.dirname(__FILE__) + "/webdriver_extensions"
|
52
|
-
if RUBY_PLATFORM =~ /mswin/ or RUBY_PLATFORM =~ /mingw/
|
53
|
-
require File.dirname(__FILE__) + "/window_script_extensions.rb"
|
54
|
-
end
|
55
52
|
|
56
53
|
require File.dirname(__FILE__) + "/rwebspec-webdriver/matchers/contains_text"
|
57
54
|
require File.dirname(__FILE__) + "/rwebspec-webdriver/testwise_plugin"
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 7
|
9
|
+
version: 0.3.7
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Zhimin Zhan
|
@@ -14,7 +14,7 @@ autorequire: rwebspec-webdriver
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2012-
|
17
|
+
date: 2012-05-06 00:00:00 +10:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -92,7 +92,6 @@ files:
|
|
92
92
|
- lib/rwebspec-webdriver/web_testcase.rb
|
93
93
|
- lib/rwebspec-webdriver.rb
|
94
94
|
- lib/webdriver_extensions.rb
|
95
|
-
- lib/window_script_extensions.rb
|
96
95
|
has_rdoc: true
|
97
96
|
homepage: http://github.com/zhimin/rwebspec-webdriver/tree/master
|
98
97
|
licenses: []
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'watir'
|
3
|
-
|
4
|
-
# Used for calling javacript of VBScript
|
5
|
-
# Applies to IE only
|
6
|
-
#
|
7
|
-
# Ref: http://msdn.microsoft.com/en-us/library/aa741364%28VS.85%29.aspx
|
8
|
-
#
|
9
|
-
module Watir
|
10
|
-
class IE
|
11
|
-
def execute_script(scriptCode)
|
12
|
-
window.execScript(scriptCode)
|
13
|
-
end
|
14
|
-
|
15
|
-
def window
|
16
|
-
ie.Document.parentWindow
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|