Skip to content

Commit

Permalink
Create send_command method at Connection class
Browse files Browse the repository at this point in the history
  • Loading branch information
neyberson committed Aug 8, 2024
1 parent f5c87c8 commit df9492b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions devtools/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ def list_tabs(self):
def close_tab(self, session_obj):
del self.tab_sessions[id(session_obj)]
print(f"The following session was deleted: {session_obj.session_id}")

def send_command(self, command, params=None, cb=None):
return self.browser_session.send_command(self, command, params, cb)

0 comments on commit df9492b

Please sign in to comment.