Skip to content

Commit 09a027e

Browse files
authored
fix: send home button after wda start in simulator (#127)
1 parent b160bd4 commit 09a027e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

devices/simulator.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,10 @@ func (s *SimulatorDevice) StartAgent(config StartAgentConfig) error {
608608
return err
609609
}
610610

611+
// wait 1 second after pressing home, so we make sure wda is in the background
612+
_ = s.wdaClient.PressButton("HOME")
613+
time.Sleep(1 * time.Second)
614+
611615
return nil
612616
}
613617

0 commit comments

Comments
 (0)