Skip to content

Commit c03161c

Browse files
author
Dennis Hoer
committedJul 29, 2015
Deprecate PhantomJS
1 parent 6e2c596 commit c03161c

File tree

7 files changed

+13
-64
lines changed

7 files changed

+13
-64
lines changed
 

‎.kitchen.macosx.yml

-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ suites:
2626
- recipe[selenium_test::hub]
2727
- recipe[selenium_test::node]
2828
- recipe[selenium_test::htmlunit]
29-
- recipe[selenium_test::phantomjs]
30-
- recipe[selenium_test::phantomjs_nogrid]
3129
attributes:
3230
java:
3331
jdk_version: '7'

‎.kitchen.yml

-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ suites:
4343
- recipe[selenium_test::hub]
4444
- recipe[selenium_test::node]
4545
- recipe[selenium_test::htmlunit]
46-
- recipe[selenium_test::phantomjs]
47-
- recipe[selenium_test::phantomjs_nogrid]
4846
attributes:
4947
java:
5048
jdk_version: '7'

‎Berksfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ source 'https://supermarket.chef.io'
22

33
metadata
44

5-
cookbook 'selenium_test', path: 'test/fixtures/cookbooks/selenium_test'
5+
group :solo do
6+
cookbook 'selenium_test', path: 'test/fixtures/cookbooks/selenium_test'
7+
end

‎CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.5.0 - 7/29/2015
4+
5+
- Deprecate PhantomJS
6+
37
## 2.4.2 - 6/29/2015
48

59
- Add powershell_version check

‎README.md

+4-57
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,14 @@ This cookbook comes with the following Resource/Providers:
1414

1515
- **[selenium_hub](https://github.com/dhoer/chef-selenium#selenium_hub)** - Installs and configures selenium-grid hubs.
1616
- **[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),
1918
[FirefoxDriver](https://code.google.com/p/selenium/wiki/FirefoxDriver),
2019
[HtmlUnitDriver](https://code.google.com/p/selenium/wiki/HtmlUnitDriver), and
2120
[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).
2521

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.
2724

28-
- Add support for [Appium](http://appium.io)
2925

3026
## Requirements
3127

@@ -43,7 +39,7 @@ with support for [ChromeDriver](http://chromedriver.storage.googleapis.com/index
4339
These cookbooks are referenced with suggests, so be sure to depend on cookbooks that apply:
4440

4541
- 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)
4743

4844
## Usage
4945

@@ -163,54 +159,6 @@ background:
163159
- `domain` - Optional. Defaults to `nil`.
164160

165161

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-
214162
## ChefSpec Matchers
215163

216164
The Selenium cookbook includes custom [ChefSpec](https://github.com/sethvargo/chefspec) matchers you can use to test
@@ -228,7 +176,6 @@ Selenium Cookbook Matchers
228176

229177
- install_selenium_hub(resource_name)
230178
- install_selenium_node(resource_name)
231-
- install_selenium_phantomjs(resource_name)
232179

233180
## Getting Help
234181

‎attributes/default.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
default['selenium']['windows']['home'] = 'C:/selenium'
99
default['selenium']['windows']['java'] = 'C:\Windows\System32\java.exe'
10-
default['selenium']['windows']['phantomjs'] = 'C:\tools\PhantomJS\phantomjs.exe'
10+
default['selenium']['windows']['phantomjs'] = 'C:\ProgramData\chocolatey\bin\phantomjs.exe'
1111

1212
default['selenium']['linux']['home'] = '/usr/local/selenium'
1313
default['selenium']['linux']['java'] = '/usr/bin/java'

‎metadata.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
license 'MIT'
55
description 'Installs/Configures Selenium'
66
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7-
version '2.4.2'
7+
version '2.5.0'
88

99
supports 'centos'
1010
supports 'redhat'

0 commit comments

Comments
 (0)
Please sign in to comment.