@@ -14,18 +14,14 @@ This cookbook comes with the following Resource/Providers:
14
14
15
15
- ** [ selenium_hub] ( https://github.com/dhoer/chef-selenium#selenium_hub ) ** - Installs and configures selenium-grid hubs.
16
16
- ** [ selenium_node] ( https://github.com/dhoer/chef-selenium#selenium_node ) ** - Installs and configures selenium-grid
17
- nodes
18
- with support for [ ChromeDriver] ( http://chromedriver.storage.googleapis.com/index.html ) ,
17
+ nodes with support for [ ChromeDriver] ( http://chromedriver.storage.googleapis.com/index.html ) ,
19
18
[ FirefoxDriver] ( https://code.google.com/p/selenium/wiki/FirefoxDriver ) ,
20
19
[ HtmlUnitDriver] ( https://code.google.com/p/selenium/wiki/HtmlUnitDriver ) , and
21
20
[ InternetExplorerDriver] ( https://code.google.com/p/selenium/wiki/InternetExplorerDriver ) .
22
- - ** [ selenium_phantomjs] ( https://github.com/dhoer/chef-selenium#selenium_phantomjs ) ** - Installs and configures
23
- [ PhantomJS] ( http://phantomjs.org/ ) as a selenium-grid node or as a standalone server via
24
- [ GhostDriver] ( https://github.com/detro/ghostdriver ) .
25
21
26
- #### Roadmap
22
+ PhantomJS has been deprecated and is no longer supported. It will be removed in the next major release.
23
+ Please use [ ghostdriver] ( https://github.com/dhoer/chef-ghostdriver ) cookbook instead.
27
24
28
- - Add support for [ Appium] ( http://appium.io )
29
25
30
26
## Requirements
31
27
@@ -43,7 +39,7 @@ with support for [ChromeDriver](http://chromedriver.storage.googleapis.com/index
43
39
These cookbooks are referenced with suggests, so be sure to depend on cookbooks that apply:
44
40
45
41
- windows
46
- - nssm - Required for Windows services only (e.g. Hub, PhantomJS, and HtmlUnit running in background)
42
+ - nssm - Required for Windows services only (e.g. Hub and HtmlUnit running in background)
47
43
48
44
## Usage
49
45
@@ -163,54 +159,6 @@ background:
163
159
- ` domain ` - Optional. Defaults to ` nil ` .
164
160
165
161
166
- ## selenium_phantomjs
167
-
168
- Installs and configures [ PhantomJS] ( http://phantomjs.org/ ) as a selenium-grid node or as a standalone server via
169
- [ GhostDriver] ( https://github.com/detro/ghostdriver ) (Mac OS X is not supported).
170
-
171
- #### Requirements
172
-
173
- - [ PhantomJS] ( http://phantomjs.org/ ) must be installed outside of this cookbook.
174
- - Windows nodes have the option to run as a GUI service and that requires a username and password to automatically
175
- login.
176
- Note that Windows password is stored unencrypted under windows registry
177
- ` HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon ` .
178
-
179
- #### Examples
180
-
181
- ##### Install PhantomJS as a selenium-grid node
182
-
183
- ``` ruby
184
- selenium_phantomjs ' selenium_phantomjs' do
185
- action :install
186
- end
187
- ```
188
-
189
- ##### Install PhantomJS as a standalone server by setting webdriverSeleniumGridHub to false
190
-
191
- ``` ruby
192
- selenium_phantomjs ' selenium_phantomjs_nogrid' do
193
- webdriverSeleniumGridHub false
194
- action :install
195
- end
196
- ```
197
-
198
- #### Attributes
199
-
200
- This is a partial list of attributes available. See
201
- [ phantomjs] ( https://github.com/dhoer/chef-selenium/blob/master/resources/phantomjs.rb )
202
- resource for the complete listing of attributes.
203
-
204
- - ` name ` - Name attribute. The name of the service or Windows foreground startup script.
205
- - ` webdriver ` - Webdriver ip: port . Defaults to ` #{node['ipaddress']}:8910 ` .
206
- - ` webdriverSeleniumGridHub ` - Webdriver selenium-grid hub url. Set to ` false ` to install PhantomJS as a standalone
207
- service. Defaults to ` http://#{node['ipaddress']}:4444 ` .
208
- - Windows only - Set both username and password to run as a GUI service or leave nil to run service in background:
209
- - ` username ` - Defaults to ` nil ` .
210
- - ` password ` - Defaults to ` nil ` . Note that Windows password is stored unencrypted under windows registry
211
- ` HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon ` .
212
- - ` domain ` - Optional. Defaults to ` nil ` .
213
-
214
162
## ChefSpec Matchers
215
163
216
164
The Selenium cookbook includes custom [ ChefSpec] ( https://github.com/sethvargo/chefspec ) matchers you can use to test
@@ -228,7 +176,6 @@ Selenium Cookbook Matchers
228
176
229
177
- install_selenium_hub(resource_name)
230
178
- install_selenium_node(resource_name)
231
- - install_selenium_phantomjs(resource_name)
232
179
233
180
## Getting Help
234
181
0 commit comments