Skip to content

Commit

Permalink
DanielWagnerHall: Removing deleted methods. Fixes issue 2041.
Browse files Browse the repository at this point in the history
r13119
  • Loading branch information
illicitonion committed Jul 28, 2011
1 parent ae65629 commit ca884e7
Showing 1 changed file with 1 addition and 39 deletions.
40 changes: 1 addition & 39 deletions wire.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,9 +607,6 @@ def main():

resources.append(
ElementResource('/session/:sessionId/element/:id/value').
Get('Query for the value of an element, as determined by its `value` attribute.').
SetReturnType('{string|null}',
'The element\'s value, or `null` if it does not have a `value` attribute.').
Post('''Send a sequence of key strokes to an element.
Any UTF-8 character may be specified, however, if the server does not support \
Expand Down Expand Up @@ -746,20 +743,7 @@ def main():
ElementResource('/session/:sessionId/element/:id/selected').
Get('Determine if an `OPTION` element, or an `INPUT` element of type `checkbox` or '
'`radiobutton` is currently selected.').
SetReturnType('{boolean}', 'Whether the element is selected.').
Post('Select an `OPTION` element, or an `INPUT` element of type `checkbox` or `radiobutton`.').
RequiresVisibility().
RequiresEnabledState().
AddError('ElementIsNotSelectable', 'If the referenced element cannot be selected.'))

resources.append(
ElementResource('/session/:sessionId/element/:id/toggle').
Post('Toggle whether an `OPTION` element, or an `INPUT` element of type `checkbox` or '
'`radiobutton` is currently selected.').
RequiresVisibility().
RequiresEnabledState().
AddError('ElementIsNotSelectable', 'If the referenced element cannot be selected.').
SetReturnType('{boolean}', 'Whether the element is selected after toggling its state.'))
SetReturnType('{boolean}', 'Whether the element is selected.'))

resources.append(
ElementResource('/session/:sessionId/element/:id/enabled').
Expand Down Expand Up @@ -816,28 +800,6 @@ def main():
'`background-color` instead of `backgroundColor`).').
SetReturnType('{string}', 'The value of the specified CSS property.'))

resources.append(
ElementResource('/session/:sessionId/element/:id/hover').
Post('Move the mouse over an element.').
RequiresVisibility().
RequiresEnabledState())

resources.append(
ElementResource('/session/:sessionId/element/:id/drag').
Post('Drag and drop an element. The distance to drag an element should be specified relative '
'to the upper-left corner of the page.').
RequiresVisibility().
RequiresEnabledState().
AddJsonParameter('x', '{number}',
'The number of pixels to drag the element in the horizontal direction. '
'A positive value indicates the element should be dragged to the right, '
'while a negative value indicates that it should be dragged to the left.').
AddJsonParameter('y', '{number}',
'The number of pixels to drag the element in the vertical direction. '
'A positive value indicates the element should be dragged down towards the '
'bottom of the screen, while a negative value indicates that it should be '
'dragged towards the top of the screen.'))

resources.append(
SessionResource('/session/:sessionId/orientation').
Get('Get the current browser orientation. The server should return a '
Expand Down

0 comments on commit ca884e7

Please sign in to comment.