class Playwright::ChannelOwners::ElementHandle

def scroll_into_view_if_needed(timeout: nil)

def scroll_into_view_if_needed(timeout: nil)
  params = {
    timeout: timeout,
  }.compact
  @channel.send_message_to_server('scrollIntoViewIfNeeded', params)
  nil
end