safariwatir 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/safariwatir.rb +7 -7
- data/safariwatir_script.rb +7 -7
- metadata +2 -2
data/safariwatir.rb
CHANGED
|
@@ -98,18 +98,18 @@ module Watir
|
|
|
98
98
|
if scripter_suffix.nil?
|
|
99
99
|
raise "SafariWatir does not currently support finding by #{how}"
|
|
100
100
|
end
|
|
101
|
-
@scripter.send("
|
|
101
|
+
@scripter.send("operate_#{scripter_suffix}", self, &block)
|
|
102
102
|
end
|
|
103
103
|
|
|
104
104
|
OPERATIONS = {
|
|
105
|
-
:id => "
|
|
106
|
-
:index => "
|
|
107
|
-
:class => "
|
|
108
|
-
:name => "
|
|
105
|
+
:id => "by_id",
|
|
106
|
+
:index => "by_index",
|
|
107
|
+
:class => "by_class",
|
|
108
|
+
:name => "by_name",
|
|
109
109
|
:text => "on_link",
|
|
110
110
|
:url => "on_link",
|
|
111
|
-
:value => "
|
|
112
|
-
:caption => "
|
|
111
|
+
:value => "by_input_value",
|
|
112
|
+
:caption => "by_input_value"
|
|
113
113
|
}
|
|
114
114
|
end
|
|
115
115
|
|
data/safariwatir_script.rb
CHANGED
|
@@ -26,11 +26,11 @@ def safari.google_to_prag
|
|
|
26
26
|
goto("http://google.com")
|
|
27
27
|
text_field(:name, "q").set("pickaxe")
|
|
28
28
|
button(:name, "btnG").click
|
|
29
|
-
link(:text,
|
|
30
|
-
link(:url, "http://www.
|
|
31
|
-
link(:text, "
|
|
32
|
-
link(:text, "All
|
|
33
|
-
link(:
|
|
29
|
+
link(:text, /Programming Ruby/).click
|
|
30
|
+
link(:url, "http://www.pragprog.com/titles/ruby/source_code").click
|
|
31
|
+
link(:text, "All Categories").click
|
|
32
|
+
link(:text, "All Titles").click
|
|
33
|
+
link(:url, /retrospectives/).click
|
|
34
34
|
puts "FAILURE prag" unless contains_text("Dave Hoover")
|
|
35
35
|
end
|
|
36
36
|
|
|
@@ -148,6 +148,6 @@ begin
|
|
|
148
148
|
safari.tables
|
|
149
149
|
safari.onchange
|
|
150
150
|
safari.ruby_sponsor_images
|
|
151
|
-
ensure
|
|
152
|
-
|
|
151
|
+
# ensure
|
|
152
|
+
# safari.close
|
|
153
153
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: safariwatir
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dave Hoover
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2008-
|
|
12
|
+
date: 2008-10-10 00:00:00 -05:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|