fix: init wda driver

This commit is contained in:
lilong.129
2025-02-17 17:50:41 +08:00
parent 29c0e1cbef
commit 3ae314d0ba
5 changed files with 36 additions and 25 deletions

View File

@@ -334,15 +334,6 @@ func (r DriverRawResponse) ValueConvertToBool() (b bool, err error) {
return
}
func (r DriverRawResponse) ValueConvertToSessionInfo() (sessionInfo DriverSession, err error) {
reply := new(struct{ Value struct{ DriverSession } })
if err = json.Unmarshal(r, reply); err != nil {
return DriverSession{}, err
}
sessionInfo = reply.Value.DriverSession
return
}
func (r DriverRawResponse) ValueConvertToJsonRawMessage() (raw builtinJSON.RawMessage, err error) {
reply := new(struct{ Value builtinJSON.RawMessage })
if err = json.Unmarshal(r, reply); err != nil {