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.
File without changes
File without changes
File without changes
File without changes
@@ -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
@@ -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
File without changes
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
- version: 1.1.12
5
- prerelease: !!null
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: !!null
14
+ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-02-01 00:00:00.000000000 +05:30
13
- default_executable: !!null
17
+
18
+ date: 2011-02-01 00:00:00 +05:30
19
+ default_executable:
14
20
  dependencies: []
15
- description: The Selenium Server and Selenium client are merged into single gem. This
16
- gem gives you the option to convert the selenium commands into selense script and
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
- extra_rdoc_files:
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
- post_install_message: !!null
58
- rdoc_options:
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
- version: '0'
73
- required_rubygems_version: !ruby/object:Gem::Requirement
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
- version: '0'
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ hash: 3
90
+ segments:
91
+ - 0
92
+ version: "0"
79
93
  requirements: []
80
- rubyforge_project: !!null
81
- rubygems_version: 1.5.0
82
- signing_key: !!null
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
+