fix: clean up Appium settings initialization

This commit is contained in:
lilong.129
2025-06-26 17:30:00 +08:00
parent 98dc80cca5
commit 1923996f65
3 changed files with 1 additions and 15 deletions

View File

@@ -6,12 +6,6 @@
},
"ios": [
{
"perf_options": {
"sys_cpu": true,
"sys_mem": true,
"fps": true,
"network": true
},
"port": 8700,
"mjpeg_port": 8800,
"log_on": true,

View File

@@ -1 +1 @@
v5.0.0-beta-2506261457
v5.0.0-beta-2506261730

View File

@@ -218,14 +218,6 @@ func (dev *IOSDevice) NewDriver() (driver IDriver, err error) {
if err != nil {
return nil, errors.Wrap(err, "failed to init WDA driver")
}
settings, err := wdaDriver.SetAppiumSettings(map[string]interface{}{
"snapshotMaxDepth": dev.Options.SnapshotMaxDepth,
"acceptAlertButtonSelector": dev.Options.AcceptAlertButtonSelector,
})
if err != nil {
return nil, errors.Wrap(err, "failed to set appium WDA settings")
}
log.Info().Interface("appiumWDASettings", settings).Msg("set appium WDA settings")
if dev.Options.ResetHomeOnStartup {
log.Info().Msg("go back to home screen")