ClericPy / ichrome

Chrome controller for Humans, based on Chrome Devtools Protocol(CDP) and python3.7+.
https://pypi.org/project/ichrome/
MIT License
228 stars 29 forks source link

How could I make an object as argument like Runtime.CallArgument? #49

Closed Champollion9012 closed 3 years ago

Champollion9012 commented 3 years ago

I'd like to use Debugger.setReturnValue, it's argument needs Runtime.CallArgument type. How could I make an object as argument like Runtime.CallArgument in iChrome?

ClericPy commented 3 years ago
async def send(self,
                   method: str,
                   timeout=NotSet,
                   callback_function: Optional[Callable] = None,
                   kwargs: Dict[str, Any] = None,
                   auto_enable=True,
                   force=None,
                   **_kwargs)

JS's object could be looks like dict of python, await tab.send('Debugger.setVariableValue', ..., newValue={'k': 'v'})

Champollion9012 commented 3 years ago

thx