Skip to content

Commit

Permalink
Update Element params order to be consistent with other clases
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus David Garcia Gomez committed Aug 12, 2021
1 parent 760676c commit 0fc1c69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/webdriver/webdriver/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ class Element(object):
"""
identifier = "element-6066-11e4-a52e-4f735466cecf"

def __init__(self, id, session):
def __init__(self, session, id):
"""
Construct a new web element representation.
Expand All @@ -807,7 +807,7 @@ def __eq__(self, other):
@classmethod
def from_json(cls, json, session):
uuid = json[Element.identifier]
return cls(uuid, session)
return cls(session, uuid)

def send_element_command(self, method, uri, body=None):
url = "element/%s/%s" % (self.id, uri)
Expand Down

0 comments on commit 0fc1c69

Please sign in to comment.