From: Ian Jackson Date: Mon, 15 Mar 2021 00:42:54 +0000 (+0000) Subject: wdt-hand: Select and deselect hand appropriately X-Git-Tag: otter-0.4.0~39 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ef28c3b6b28906898cf77de4805cb8a3c9e5bf98;p=otter.git wdt-hand: Select and deselect hand appropriately Signed-off-by: Ian Jackson --- 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')