selenium-selenese 1.1.12 → 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +0 -0
- data/examples/script/google.rb +0 -0
- data/lib/nautilus/shell.rb +0 -0
- data/lib/selenium.rb +0 -0
- data/lib/selenium/client/base.rb +0 -23
- data/lib/selenium/client/driver.rb +0 -0
- data/lib/selenium/client/extensions.rb +0 -0
- data/lib/selenium/client/idiomatic.rb +0 -0
- data/lib/selenium/client/javascript_expression_builder.rb +0 -0
- data/lib/selenium/client/javascript_frameworks/jquery.rb +0 -0
- data/lib/selenium/client/javascript_frameworks/prototype.rb +0 -0
- data/lib/selenium/client/legacy_driver.rb +0 -0
- data/lib/selenium/client/protocol.rb +0 -0
- data/lib/selenium/client/selenium_helper.rb +0 -0
- data/lib/selenium/command_error.rb +0 -0
- data/lib/selenium/protocol_error.rb +0 -0
- data/lib/selenium/rake/default_tasks.rb +0 -0
- data/lib/selenium/rake/remote_control_start_task.rb +0 -0
- data/lib/selenium/rake/remote_control_stop_task.rb +0 -0
- data/lib/selenium/rake/tasks.rb +0 -0
- data/lib/selenium/remote_control/remote_control.rb +0 -0
- data/lib/selenium/rspec/reporting/file_path_strategy.rb +0 -0
- data/lib/selenium/rspec/reporting/html_report.rb +0 -0
- data/lib/selenium/rspec/reporting/selenium_test_report_formatter.rb +0 -0
- data/lib/selenium/rspec/reporting/system_capture.rb +0 -0
- data/lib/selenium/rspec/rspec_extensions.rb +0 -0
- data/lib/selenium/rspec/spec_helper.rb +0 -0
- data/lib/selenium/selenese.rb +22 -0
- data/lib/tcp_socket_extension.rb +0 -0
- data/vendor/selenium-server.jar +0 -0
- metadata +47 -33
data/README.markdown
CHANGED
File without changes
|
data/examples/script/google.rb
CHANGED
File without changes
|
data/lib/nautilus/shell.rb
CHANGED
File without changes
|
data/lib/selenium.rb
CHANGED
File without changes
|
data/lib/selenium/client/base.rb
CHANGED
@@ -118,29 +118,6 @@ module Selenium
|
|
118
118
|
end
|
119
119
|
|
120
120
|
#goto method added by Priya
|
121
|
-
|
122
|
-
def exec_selenese_script(file)
|
123
|
-
f = File.new(file,"r")
|
124
|
-
string = ""
|
125
|
-
f.readlines.each { |line|
|
126
|
-
line.strip!
|
127
|
-
string = string + line.to_s
|
128
|
-
}
|
129
|
-
str_arr = string.partition("<tbody>")
|
130
|
-
str_arr.shift(2)
|
131
|
-
arr = str_arr[0].split("</tr>")
|
132
|
-
arr.pop
|
133
|
-
commands = []
|
134
|
-
arr.each{|ele| commands << ele.gsub("<tr><td>","").gsub("</td><td>",",").gsub("</td>","").split(",")}
|
135
|
-
@browser = Selenium::Client::Driver.new(:browser=>"*firefox", :timeout_in_second=> 15000, :url => "http://www.google.com")
|
136
|
-
@browser.start_new_browser_session
|
137
|
-
commands.each do |command|
|
138
|
-
args = []
|
139
|
-
args << command[1]
|
140
|
-
args << command[2]
|
141
|
-
@browser.remote_control_command(command[0],args)
|
142
|
-
end
|
143
|
-
end
|
144
121
|
#def goto(url)
|
145
122
|
# start_new_browser_session
|
146
123
|
# open "/"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/selenium/rake/tasks.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/selenium/selenese.rb
CHANGED
@@ -22,3 +22,25 @@ require File.expand_path(File.dirname(__FILE__) + '/remote_control/remote_contro
|
|
22
22
|
require File.expand_path(File.dirname(__FILE__) + '/rake/remote_control_start_task')
|
23
23
|
require File.expand_path(File.dirname(__FILE__) + '/rake/remote_control_stop_task')
|
24
24
|
|
25
|
+
def exec_selenese_script(file)
|
26
|
+
f = File.new(file,"r")
|
27
|
+
string = ""
|
28
|
+
f.readlines.each { |line|
|
29
|
+
line.strip!
|
30
|
+
string = string + line.to_s
|
31
|
+
}
|
32
|
+
str_arr = string.partition("<tbody>")
|
33
|
+
str_arr.shift(2)
|
34
|
+
arr = str_arr[0].split("</tr>")
|
35
|
+
arr.pop
|
36
|
+
commands = []
|
37
|
+
arr.each{|ele| commands << ele.gsub("<tr><td>","").gsub("</td><td>",",").gsub("</td>","").split(",")}
|
38
|
+
@browser = Selenium::Client::Driver.new(:browser=>"*firefox", :timeout_in_second=> 15000, :url => "http://www.google.com")
|
39
|
+
@browser.start_new_browser_session
|
40
|
+
commands.each do |command|
|
41
|
+
args = []
|
42
|
+
args << command[1]
|
43
|
+
args << command[2]
|
44
|
+
@browser.remote_control_command(command[0],args)
|
45
|
+
end
|
46
|
+
end
|
data/lib/tcp_socket_extension.rb
CHANGED
File without changes
|
data/vendor/selenium-server.jar
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,26 +1,33 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: selenium-selenese
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 9
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
- 13
|
10
|
+
version: 1.1.13
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Technologies
|
9
|
-
autorequire:
|
14
|
+
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
17
|
+
|
18
|
+
date: 2011-02-01 00:00:00 +05:30
|
19
|
+
default_executable:
|
14
20
|
dependencies: []
|
15
|
-
|
16
|
-
|
17
|
-
vice versa.
|
21
|
+
|
22
|
+
description: The Selenium Server and Selenium client are merged into single gem. This gem gives you the option to convert the selenium commands into selense script and vice versa.
|
18
23
|
email: dharsininitt@gmail.com
|
19
24
|
executables: []
|
25
|
+
|
20
26
|
extensions: []
|
21
|
-
|
27
|
+
|
28
|
+
extra_rdoc_files:
|
22
29
|
- README.markdown
|
23
|
-
files:
|
30
|
+
files:
|
24
31
|
- lib/nautilus/shell.rb
|
25
32
|
- lib/selenium/client/base.rb
|
26
33
|
- lib/selenium/client/driver.rb
|
@@ -52,36 +59,43 @@ files:
|
|
52
59
|
- vendor/selenium-server.jar
|
53
60
|
- README.markdown
|
54
61
|
has_rdoc: true
|
55
|
-
homepage:
|
62
|
+
homepage: ""
|
56
63
|
licenses: []
|
57
|
-
|
58
|
-
|
64
|
+
|
65
|
+
post_install_message:
|
66
|
+
rdoc_options:
|
59
67
|
- --charset=UTF-8
|
60
68
|
- --title
|
61
69
|
- Selenium Selenese
|
62
70
|
- --main
|
63
71
|
- README
|
64
72
|
- --line-numbers
|
65
|
-
require_paths:
|
73
|
+
require_paths:
|
66
74
|
- lib
|
67
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
76
|
none: false
|
69
|
-
requirements:
|
70
|
-
- -
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
|
73
|
-
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
hash: 3
|
81
|
+
segments:
|
82
|
+
- 0
|
83
|
+
version: "0"
|
84
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
85
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
hash: 3
|
90
|
+
segments:
|
91
|
+
- 0
|
92
|
+
version: "0"
|
79
93
|
requirements: []
|
80
|
-
|
81
|
-
|
82
|
-
|
94
|
+
|
95
|
+
rubyforge_project:
|
96
|
+
rubygems_version: 1.3.7
|
97
|
+
signing_key:
|
83
98
|
specification_version: 3
|
84
|
-
summary: The Selenium Server and Selenium client are merged into single gem. This
|
85
|
-
gem gives you the option to convert the selenium commands into selense script and
|
86
|
-
vice versa.
|
99
|
+
summary: The Selenium Server and Selenium client are merged into single gem. This gem gives you the option to convert the selenium commands into selense script and vice versa.
|
87
100
|
test_files: []
|
101
|
+
|