(&self, id: &str)
| 543 | } |
| 544 | |
| 545 | pub fn open_app_switcher(&self, id: &str) -> Result<(), AppError> { |
| 546 | let serial = self.serial_for_id(id)?; |
| 547 | self.run_adb(["-s", &serial, "shell", "input", "keyevent", "187"])?; |
| 548 | Ok(()) |
| 549 | } |
| 550 | |
| 551 | pub fn press_button(&self, id: &str, button: &str, duration_ms: u32) -> Result<(), AppError> { |
| 552 | match button { |
no test coverage detected