fix: step mobile type empty

This commit is contained in:
lilong.129
2024-11-19 21:14:58 +08:00
parent a813f966d7
commit 6e2f0188b3
3 changed files with 6 additions and 10 deletions

View File

@@ -767,7 +767,6 @@ func (s *StepRequest) Android(options ...uixt.AndroidDeviceOption) *StepMobile {
return &StepMobile{
StepConfig: s.StepConfig,
Android: &MobileUI{
OSType: string(stepTypeAndroid),
Serial: androidOptions.SerialNumber,
},
}
@@ -782,7 +781,6 @@ func (s *StepRequest) IOS(options ...uixt.IOSDeviceOption) *StepMobile {
return &StepMobile{
StepConfig: s.StepConfig,
IOS: &MobileUI{
OSType: string(stepTypeIOS),
Serial: iosOptions.UDID,
},
}
@@ -797,7 +795,6 @@ func (s *StepRequest) Harmony(options ...uixt.HarmonyDeviceOption) *StepMobile {
return &StepMobile{
StepConfig: s.StepConfig,
Harmony: &MobileUI{
OSType: string(stepTypeHarmony),
Serial: harmonyOptions.ConnectKey,
},
}