chrome/test/chromedriver/client/chromedriver.py
def _WrapValue(self, value):
    """Wrap value from client side for chromedriver side."""
    if isinstance(value, dict):
      converted = {}
      for key, val in value.items():
        converted[key] = self._WrapValue(val)
      return converted
    elif isinstance(value, WebElement):
      if (self.w3c_compliant):
        return {ELEMENT_KEY_W3C: value._id}
      else:
        return {ELEMENT_KEY: value._id}
    elif isinstance(value, WebShadowRoot):
        return {SHADOW_KEY: value._id}
    elif isinstance(value, list):
      return list(self._WrapValue(item) for item in value)
    else:
      return value
Wrap value from client side for chromedriver side.
Wrap value from client side for chromedriver side.
Wrap value from client side for chromedriver side .
def _WrapValue(self, value):
    if isinstance(value, dict):
      converted = {}
      for key, val in value.items():
        converted[key] = self._WrapValue(val)
      return converted
    elif isinstance(value, WebElement):
      if (self.w3c_compliant):
        return {ELEMENT_KEY_W3C: value._id}
      else:
        return {ELEMENT_KEY: value._id}
    elif isinstance(value, WebShadowRoot):
        return {SHADOW_KEY: value._id}
    elif isinstance(value, list):
      return list(self._WrapValue(item) for item in value)
    else:
      return value
def _WrapValue ( self , value ) : if isinstance ( value , dict ) : converted = { } for key , val in value . items ( ) : converted [ key ] = self . _WrapValue ( val ) return converted elif isinstance ( value , WebElement ) : if ( self . w3c_compliant ) : return { ELEMENT_KEY_W3C : value . _id } else : return { ELEMENT_KEY : value . _id } elif isinstance ( value , WebShadowRoot ) : return { SHADOW_KEY : value . _id } elif isinstance ( value , list ) : return list ( self . _WrapValue ( item ) for item in value ) else : return value
Wrap value from client side for chromedriver side.
Wrap value from client side for chromedriver side .
"""Wrap value from client side for chromedriver side."""
self
value