Skip to content

Commit

Permalink
Remove PhantomJS-related code from Ruby bindings
Browse files Browse the repository at this point in the history
It has been deprecated since Selenium 3.6 and is not W3C specification
compliant.
  • Loading branch information
p0deje committed Apr 18, 2019
1 parent f51895f commit 85a96c4
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 172 deletions.
6 changes: 2 additions & 4 deletions rb/lib/selenium/webdriver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ module WebDriver
autoload :Edge, 'selenium/webdriver/edge'
autoload :Firefox, 'selenium/webdriver/firefox'
autoload :IE, 'selenium/webdriver/ie'
autoload :PhantomJS, 'selenium/webdriver/phantomjs'
autoload :Remote, 'selenium/webdriver/remote'
autoload :Safari, 'selenium/webdriver/safari'
autoload :Support, 'selenium/webdriver/support'
Expand All @@ -54,10 +53,10 @@ def self.root
# Create a new Driver instance with the correct bridge for the given browser
#
# @overload for(browser)
# @param [:ie, :internet_explorer, :edge, :remote, :chrome, :firefox, :ff, :phantomjs, :safari] browser The browser to
# @param [:ie, :internet_explorer, :edge, :remote, :chrome, :firefox, :ff, :safari] browser The browser to
# create the driver for
# @overload for(browser, opts)
# @param [:ie, :internet_explorer, :edge, :remote, :chrome, :firefox, :ff, :phantomjs, :safari] browser The browser to
# @param [:ie, :internet_explorer, :edge, :remote, :chrome, :firefox, :ff, :safari] browser The browser to
# create the driver for
# @param [Hash] opts Options passed to Driver.new
#
Expand All @@ -68,7 +67,6 @@ def self.root
# @see Selenium::WebDriver::IE::Driver
# @see Selenium::WebDriver::Edge::Driver
# @see Selenium::WebDriver::Chrome::Driver
# @see Selenium::WebDriver::PhantomJS::Driver
# @see Selenium::WebDriver::Safari::Driver
#
# @example
Expand Down
2 changes: 0 additions & 2 deletions rb/lib/selenium/webdriver/common/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ def for(browser, opts = {})
IE::Driver.new(opts)
when :safari
Safari::Driver.new(opts)
when :phantomjs
PhantomJS::Driver.new(opts)
when :firefox, :ff
Firefox::Driver.new(opts)
when :edge
Expand Down
42 changes: 0 additions & 42 deletions rb/lib/selenium/webdriver/phantomjs.rb

This file was deleted.

72 changes: 0 additions & 72 deletions rb/lib/selenium/webdriver/phantomjs/driver.rb

This file was deleted.

45 changes: 0 additions & 45 deletions rb/lib/selenium/webdriver/phantomjs/service.rb

This file was deleted.

7 changes: 0 additions & 7 deletions rb/lib/selenium/webdriver/remote/capabilities.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,6 @@ def internet_explorer(opts = {})
end
alias_method :ie, :internet_explorer

def phantomjs(opts = {})
WebDriver.logger.deprecate 'Selenium support for PhantomJS', 'headless Chrome/Firefox or HTMLUnit'
new({
browser_name: 'phantomjs',
}.merge(opts))
end

#
# @api private
#
Expand Down
Empty file.

0 comments on commit 85a96c4

Please sign in to comment.