fix: specify uia2 ip and port

This commit is contained in:
debugtalk
2022-12-26 20:22:59 +08:00
parent a7180a2b8c
commit 3dd09e5539
8 changed files with 43 additions and 138 deletions

View File

@@ -69,18 +69,6 @@ func (wd *wdaDriver) NewSession(capabilities Capabilities) (sessionInfo SessionI
return
}
func (wd *wdaDriver) ActiveSession() (sessionInfo SessionInfo, err error) {
// [[FBRoute GET:@""] respondWithTarget:self action:@selector(handleGetActiveSession:)]
var rawResp rawResponse
if rawResp, err = wd.httpGET("/session", wd.sessionId); err != nil {
return SessionInfo{}, err
}
if sessionInfo, err = rawResp.valueConvertToSessionInfo(); err != nil {
return SessionInfo{}, err
}
return
}
func (wd *wdaDriver) DeleteSession() (err error) {
// [[FBRoute DELETE:@""] respondWithTarget:self action:@selector(handleDeleteSession:)]
_, err = wd.httpDELETE("/session", wd.sessionId)