From ef28c3b6b28906898cf77de4805cb8a3c9e5bf98 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 15 Mar 2021 00:42:54 +0000 Subject: [PATCH] wdt-hand: Select and deselect hand appropriately Signed-off-by: Ian Jackson --- wdriver/wdt-hand.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/wdriver/wdt-hand.rs b/wdriver/wdt-hand.rs index 423d21c5..5e5fc23d 100644 --- a/wdriver/wdt-hand.rs +++ b/wdriver/wdt-hand.rs @@ -64,6 +64,11 @@ impl Ctx { .perform() .context("claim hand")?; + w.action_chain() + .click() + .perform() + .context("deselect")?; + chk(&mut w, HAND, Some(ALICE))?; } @@ -81,6 +86,15 @@ impl Ctx { { let mut w = su.w(&self.alice)?; + + let hand = w.find_piece(HAND)?; + w.action_chain() + .move_pos(&hand)? + .click() + .perform() + .context("select hand")?; + w.synch()?; + w.action_chain() .key_down('C') .key_up('C') -- 2.30.2