sapphire 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sapphire/DSL/Browser/Browser.rb +13 -13
- data/lib/sapphire/DSL/Browser/Check.rb +12 -12
- data/lib/sapphire/DSL/Browser/Clear.rb +15 -15
- data/lib/sapphire/DSL/Browser/Click.rb +12 -12
- data/lib/sapphire/DSL/Browser/Close.rb +12 -12
- data/lib/sapphire/DSL/Browser/Complete.rb +15 -15
- data/lib/sapphire/DSL/Browser/CurrentUrl.rb +11 -11
- data/lib/sapphire/DSL/Browser/Error.rb +12 -12
- data/lib/sapphire/DSL/Browser/ExecuteAgainstControl.rb +45 -45
- data/lib/sapphire/DSL/Browser/Exists.rb +22 -22
- data/lib/sapphire/DSL/Browser/For.rb +10 -10
- data/lib/sapphire/DSL/Browser/Hide.rb +10 -10
- data/lib/sapphire/DSL/Browser/IsHidden.rb +28 -28
- data/lib/sapphire/DSL/Browser/IsVisible.rb +25 -25
- data/lib/sapphire/DSL/Browser/MouseOver.rb +12 -12
- data/lib/sapphire/DSL/Browser/Navigate.rb +11 -11
- data/lib/sapphire/DSL/Browser/Not.rb +9 -0
- data/lib/sapphire/DSL/Browser/Reload.rb +11 -11
- data/lib/sapphire/DSL/Browser/Set.rb +12 -12
- data/lib/sapphire/DSL/Browser/Should.rb +10 -10
- data/lib/sapphire/DSL/Browser/Show.rb +27 -26
- data/lib/sapphire/DSL/Browser/Start.rb +16 -16
- data/lib/sapphire/DSL/Browser/To.rb +10 -10
- data/lib/sapphire/DSL/Browser/Tracker.rb +15 -15
- data/lib/sapphire/DSL/Browser/Transition.rb +10 -10
- data/lib/sapphire/DSL/Browser/Uncheck.rb +12 -12
- data/lib/sapphire/DSL/Browser/With.rb +10 -10
- data/lib/sapphire/DSL/Configuration/ConfiguredBrowser.rb +12 -12
- data/lib/sapphire/DSL/Configuration/ConfiguredUser.rb +10 -10
- data/lib/sapphire/DSL/Configuration/Use.rb +15 -15
- data/lib/sapphire/DSL/Data/Exist.rb +11 -11
- data/lib/sapphire/DSL/Data/Find.rb +10 -10
- data/lib/sapphire/DSL/Data/GetPageField.rb +17 -17
- data/lib/sapphire/DSL/Data/Underscore.rb +8 -8
- data/lib/sapphire/DSL/Data/Validate.rb +16 -16
- data/lib/sapphire/DSL/Data/Verify.rb +10 -10
- data/lib/sapphire/DSL/Scenarios/Is.rb +9 -9
- data/lib/sapphire/DSL/Scenarios/Pending.rb +28 -28
- data/lib/sapphire/DSL/Scenarios/and.rb +24 -24
- data/lib/sapphire/DSL/Scenarios/background.rb +22 -22
- data/lib/sapphire/DSL/Scenarios/dsl.rb +60 -60
- data/lib/sapphire/DSL/Scenarios/finally.rb +31 -31
- data/lib/sapphire/DSL/Scenarios/given.rb +56 -56
- data/lib/sapphire/DSL/Scenarios/runner.rb +30 -30
- data/lib/sapphire/DSL/Scenarios/scenario.rb +51 -51
- data/lib/sapphire/DSL/Scenarios/then.rb +33 -33
- data/lib/sapphire/DSL/Scenarios/when.rb +46 -46
- data/lib/sapphire/DataAbstractions/Database.rb +57 -57
- data/lib/sapphire/DataAbstractions/Query.rb +19 -19
- data/lib/sapphire/Testing/ResultList.rb +18 -18
- data/lib/sapphire/Testing/ResultTree.rb +37 -37
- data/lib/sapphire/WebAbstractions/Controls/Base/Control.rb +74 -74
- data/lib/sapphire/WebAbstractions/Controls/Base/Page.rb +47 -47
- data/lib/sapphire/WebAbstractions/Controls/Base/WebBrowser.rb +74 -74
- data/lib/sapphire/WebAbstractions/Controls/Button.rb +9 -9
- data/lib/sapphire/WebAbstractions/Controls/CheckBox.rb +28 -28
- data/lib/sapphire/WebAbstractions/Controls/Chrome.rb +21 -21
- data/lib/sapphire/WebAbstractions/Controls/DropDown.rb +25 -25
- data/lib/sapphire/WebAbstractions/Controls/FireFox.rb +22 -22
- data/lib/sapphire/WebAbstractions/Controls/Hyperlink.rb +8 -8
- data/lib/sapphire/WebAbstractions/Controls/Image.rb +9 -9
- data/lib/sapphire/WebAbstractions/Controls/InternetExplorer.rb +21 -21
- data/lib/sapphire/WebAbstractions/Controls/Label.rb +8 -8
- data/lib/sapphire/WebAbstractions/Controls/RadioButton.rb +18 -18
- data/lib/sapphire/WebAbstractions/Controls/TableCell.rb +10 -0
- data/lib/sapphire/WebAbstractions/Controls/TextBox.rb +31 -31
- data/lib/sapphire/WebAbstractions/Controls/Title.rb +12 -12
- data/lib/sapphire/version.rb +1 -1
- metadata +13 -9
@@ -1,18 +1,18 @@
|
|
1
|
-
module Sapphire
|
2
|
-
module WebAbstractions
|
3
|
-
class RadioButton < Control
|
4
|
-
|
5
|
-
def Text
|
6
|
-
self.Find().text
|
7
|
-
end
|
8
|
-
|
9
|
-
def Check (value)
|
10
|
-
|
11
|
-
radio = self.Find
|
12
|
-
radio.click
|
13
|
-
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
1
|
+
module Sapphire
|
2
|
+
module WebAbstractions
|
3
|
+
class RadioButton < Control
|
4
|
+
|
5
|
+
def Text
|
6
|
+
self.Find().text
|
7
|
+
end
|
8
|
+
|
9
|
+
def Check (value)
|
10
|
+
|
11
|
+
radio = self.Find
|
12
|
+
radio.click
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
@@ -1,31 +1,31 @@
|
|
1
|
-
module Sapphire
|
2
|
-
module WebAbstractions
|
3
|
-
class TextBox < Control
|
4
|
-
|
5
|
-
def Text= (value)
|
6
|
-
text = self.Find
|
7
|
-
text.send_keys value
|
8
|
-
end
|
9
|
-
|
10
|
-
def Text
|
11
|
-
text = self.Find
|
12
|
-
text.text
|
13
|
-
end
|
14
|
-
|
15
|
-
def Set(value)
|
16
|
-
if(value == "")
|
17
|
-
self.Clear
|
18
|
-
else
|
19
|
-
text = self.Find
|
20
|
-
text.send_keys value
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
def Clear
|
25
|
-
text = self.Find
|
26
|
-
text.clear
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
1
|
+
module Sapphire
|
2
|
+
module WebAbstractions
|
3
|
+
class TextBox < Control
|
4
|
+
|
5
|
+
def Text= (value)
|
6
|
+
text = self.Find
|
7
|
+
text.send_keys value
|
8
|
+
end
|
9
|
+
|
10
|
+
def Text
|
11
|
+
text = self.Find
|
12
|
+
text.text
|
13
|
+
end
|
14
|
+
|
15
|
+
def Set(value)
|
16
|
+
if(value == "")
|
17
|
+
self.Clear
|
18
|
+
else
|
19
|
+
text = self.Find
|
20
|
+
text.send_keys value
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def Clear
|
25
|
+
text = self.Find
|
26
|
+
text.clear
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
@@ -1,12 +1,12 @@
|
|
1
|
-
module Sapphire
|
2
|
-
module WebAbstractions
|
3
|
-
class Title < Control
|
4
|
-
|
5
|
-
def Text
|
6
|
-
@browser.title
|
7
|
-
end
|
8
|
-
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
1
|
+
module Sapphire
|
2
|
+
module WebAbstractions
|
3
|
+
class Title < Control
|
4
|
+
|
5
|
+
def Text
|
6
|
+
@browser.title
|
7
|
+
end
|
8
|
+
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
data/lib/sapphire/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sapphire
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-07-07 00:00:00.000000000 -05:00
|
13
|
+
default_executable:
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: albacore
|
16
|
-
requirement: &
|
17
|
+
requirement: &27203472 !ruby/object:Gem::Requirement
|
17
18
|
none: false
|
18
19
|
requirements:
|
19
20
|
- - ! '>='
|
@@ -21,10 +22,10 @@ dependencies:
|
|
21
22
|
version: '0'
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
+
version_requirements: *27203472
|
25
26
|
- !ruby/object:Gem::Dependency
|
26
27
|
name: selenium-webdriver
|
27
|
-
requirement: &
|
28
|
+
requirement: &27203148 !ruby/object:Gem::Requirement
|
28
29
|
none: false
|
29
30
|
requirements:
|
30
31
|
- - ! '>='
|
@@ -32,10 +33,10 @@ dependencies:
|
|
32
33
|
version: '0'
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements: *
|
36
|
+
version_requirements: *27203148
|
36
37
|
- !ruby/object:Gem::Dependency
|
37
38
|
name: activesupport
|
38
|
-
requirement: &
|
39
|
+
requirement: &27202836 !ruby/object:Gem::Requirement
|
39
40
|
none: false
|
40
41
|
requirements:
|
41
42
|
- - ! '>='
|
@@ -43,7 +44,7 @@ dependencies:
|
|
43
44
|
version: '0'
|
44
45
|
type: :runtime
|
45
46
|
prerelease: false
|
46
|
-
version_requirements: *
|
47
|
+
version_requirements: *27202836
|
47
48
|
description: An automated web acceptance test framework for non-technical resources
|
48
49
|
using selenium-wedriver.
|
49
50
|
email:
|
@@ -70,6 +71,7 @@ files:
|
|
70
71
|
- lib/sapphire/DSL/Browser/IsVisible.rb
|
71
72
|
- lib/sapphire/DSL/Browser/MouseOver.rb
|
72
73
|
- lib/sapphire/DSL/Browser/Navigate.rb
|
74
|
+
- lib/sapphire/DSL/Browser/Not.rb
|
73
75
|
- lib/sapphire/DSL/Browser/Reload.rb
|
74
76
|
- lib/sapphire/DSL/Browser/Set.rb
|
75
77
|
- lib/sapphire/DSL/Browser/Should.rb
|
@@ -122,9 +124,11 @@ files:
|
|
122
124
|
- lib/sapphire/WebAbstractions/Controls/InternetExplorer.rb
|
123
125
|
- lib/sapphire/WebAbstractions/Controls/Label.rb
|
124
126
|
- lib/sapphire/WebAbstractions/Controls/RadioButton.rb
|
127
|
+
- lib/sapphire/WebAbstractions/Controls/TableCell.rb
|
125
128
|
- lib/sapphire/WebAbstractions/Controls/TextBox.rb
|
126
129
|
- lib/sapphire/WebAbstractions/Controls/Title.rb
|
127
130
|
- lib/sapphire.rb
|
131
|
+
has_rdoc: true
|
128
132
|
homepage: http://github.com/MarcusTheBold/Sapphire/
|
129
133
|
licenses: []
|
130
134
|
post_install_message:
|
@@ -145,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
149
|
version: '0'
|
146
150
|
requirements: []
|
147
151
|
rubyforge_project:
|
148
|
-
rubygems_version: 1.
|
152
|
+
rubygems_version: 1.5.2
|
149
153
|
signing_key:
|
150
154
|
specification_version: 3
|
151
155
|
summary: An automated web acceptance test framework for non-technical resources
|