fix: web ui test

This commit is contained in:
徐聪
2025-05-06 02:02:28 +08:00
parent 37fd2e900d
commit 6cce5e3c5b
14 changed files with 347 additions and 60 deletions

View File

@@ -791,6 +791,17 @@ func (s *StepRequest) Harmony(opts ...option.HarmonyDeviceOption) *StepMobile {
}
}
// Browser creates a new browser step session
func (s *StepRequest) Browser(opts ...option.BrowserDeviceOption) *StepMobile {
browserOptions := option.NewBrowserDeviceOptions(opts...)
return &StepMobile{
StepConfig: s.StepConfig,
Browser: &MobileUI{
Serial: browserOptions.BrowserID,
},
}
}
// Shell creates a new shell step session
func (s *StepRequest) Shell(content string) *StepShell {
return &StepShell{