fix: tap x,y positions

This commit is contained in:
debugtalk
2022-09-29 15:46:30 +08:00
parent 0a604f6ec5
commit 2cceffa66d
8 changed files with 206 additions and 25 deletions

View File

@@ -243,11 +243,15 @@ func (s *StepIOS) SwipeToTapText(text string, options ...uixt.ActionOption) *Ste
return &StepIOS{step: s.step}
}
func (s *StepIOS) Input(text string) *StepIOS {
s.step.IOS.Actions = append(s.step.IOS.Actions, uixt.MobileAction{
func (s *StepIOS) Input(text string, options ...uixt.ActionOption) *StepIOS {
action := uixt.MobileAction{
Method: uixt.ACTION_Input,
Params: text,
})
}
for _, option := range options {
option(&action)
}
s.step.IOS.Actions = append(s.step.IOS.Actions, action)
return &StepIOS{step: s.step}
}