Skip to content

Commit

Permalink
Remove dead browser visible methods
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Tolfsen <ato@mozilla.com>
  • Loading branch information
abotalov authored and andreastt committed Mar 26, 2014
1 parent fceda53 commit e804d9b
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 32 deletions.
3 changes: 0 additions & 3 deletions java/client/src/org/openqa/selenium/remote/DriverCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ public interface DriverCommand {
String EXECUTE_SCRIPT = "executeScript";
String EXECUTE_ASYNC_SCRIPT = "executeAsyncScript";

String SET_BROWSER_VISIBLE = "setBrowserVisible";
String IS_BROWSER_VISIBLE = "isBrowserVisible";

String GET_ELEMENT_TEXT = "getElementText";
String GET_ELEMENT_VALUE = "getElementValue";
String GET_ELEMENT_TAG_NAME = "getElementTagName";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ public HttpCommandExecutor(Map<String, CommandInfo> additionalCommands, URL addr
.put(GET_TITLE, get("/session/:sessionId/title"))
.put(GET_PAGE_SOURCE, get("/session/:sessionId/source"))
.put(SCREENSHOT, get("/session/:sessionId/screenshot"))
.put(SET_BROWSER_VISIBLE, post("/session/:sessionId/visible"))
.put(IS_BROWSER_VISIBLE, get("/session/:sessionId/visible"))
.put(FIND_ELEMENT, post("/session/:sessionId/element"))
.put(FIND_ELEMENTS, post("/session/:sessionId/elements"))
.put(GET_ACTIVE_ELEMENT, post("/session/:sessionId/element/active"))
Expand Down
2 changes: 0 additions & 2 deletions py/selenium/webdriver/remote/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ class Command(object):
GET_PAGE_SOURCE = "getPageSource"
GET_TITLE = "getTitle"
EXECUTE_SCRIPT = "executeScript"
SET_BROWSER_VISIBLE = "setBrowserVisible"
IS_BROWSER_VISIBLE = "isBrowserVisible"
GET_ELEMENT_TEXT = "getElementText"
GET_ELEMENT_VALUE = "getElementValue"
GET_ELEMENT_TAG_NAME = "getElementTagName"
Expand Down
3 changes: 0 additions & 3 deletions py/selenium/webdriver/remote/remote_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@ def __init__(self, remote_server_addr, keep_alive=False):
Command.GET_TITLE: ('GET', '/session/$sessionId/title'),
Command.GET_PAGE_SOURCE: ('GET', '/session/$sessionId/source'),
Command.SCREENSHOT: ('GET', '/session/$sessionId/screenshot'),
Command.SET_BROWSER_VISIBLE:
('POST', '/session/$sessionId/visible'),
Command.IS_BROWSER_VISIBLE: ('GET', '/session/$sessionId/visible'),
Command.FIND_ELEMENT: ('POST', '/session/$sessionId/element'),
Command.FIND_ELEMENTS: ('POST', '/session/$sessionId/elements'),
Command.GET_ACTIVE_ELEMENT:
Expand Down
20 changes: 0 additions & 20 deletions rb/lib/selenium/webdriver/common/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,26 +140,6 @@ def page_source
bridge.getPageSource
end

#
# Get the visibility of the browser. Not applicable for all browsers.
#
# @return [Boolean]
#

def visible?
bridge.getBrowserVisible
end

#
# Set the visibility of the browser. Not applicable for all browsers.
#
# @param [Boolean]
#

def visible=(bool)
bridge.setBrowserVisible bool
end

#
# Quit the browser
#
Expand Down
2 changes: 0 additions & 2 deletions rb/lib/selenium/webdriver/remote/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ class Selenium::WebDriver::Remote::Bridge
command :refresh, :post, "session/:session_id/refresh"
command :quit, :delete, "session/:session_id"
command :close, :delete, "session/:session_id/window"
command :getVisible, :get, "session/:session_id/visible"
command :setVisible, :post, "session/:session_id/visible"
command :getPageSource, :get, "session/:session_id/source"
command :getTitle, :get, "session/:session_id/title"
command :findElement, :post, "session/:session_id/element"
Expand Down

0 comments on commit e804d9b

Please sign in to comment.