Skip to content

Commit

Permalink
Remove no longer used bridge methods
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Apr 15, 2019
1 parent 6b67335 commit 4758afb
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions rb/lib/selenium/webdriver/remote/bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -441,55 +441,6 @@ def submit_element(element)
'if (arguments[0].dispatchEvent(e)) { arguments[0].submit() }', form.as_json)
end

def drag_element(element, right_by, down_by)
execute :drag_element, {id: element}, {x: right_by, y: down_by}
end

def touch_single_tap(element)
execute :touch_single_tap, {}, {element: element}
end

def touch_double_tap(element)
execute :touch_double_tap, {}, {element: element}
end

def touch_long_press(element)
execute :touch_long_press, {}, {element: element}
end

def touch_down(x, y)
execute :touch_down, {}, {x: x, y: y}
end

def touch_up(x, y)
execute :touch_up, {}, {x: x, y: y}
end

def touch_move(x, y)
execute :touch_move, {}, {x: x, y: y}
end

def touch_scroll(element, x, y)
if element
execute :touch_scroll, {}, {element: element,
xoffset: x,
yoffset: y}
else
execute :touch_scroll, {}, {xoffset: x, yoffset: y}
end
end

def touch_flick(xspeed, yspeed)
execute :touch_flick, {}, {xspeed: xspeed, yspeed: yspeed}
end

def touch_element_flick(element, right_by, down_by, speed)
execute :touch_flick, {}, {element: element,
xoffset: right_by,
yoffset: down_by,
speed: speed}
end

def screen_orientation=(orientation)
execute :set_screen_orientation, {}, {orientation: orientation}
end
Expand Down

0 comments on commit 4758afb

Please sign in to comment.