From e8f22fa571a2683694a2c57f2d14b91f00d51094 Mon Sep 17 00:00:00 2001 From: Aaron Heinen Date: Wed, 27 Jul 2016 11:09:03 -0600 Subject: [PATCH] add clickAll clickAll is a feature to click properties that are generated dynamically from your database and should not be hardcoded --- src/Extensions/Selenium.php | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/Extensions/Selenium.php b/src/Extensions/Selenium.php index 5fd668d..7ac347e 100644 --- a/src/Extensions/Selenium.php +++ b/src/Extensions/Selenium.php @@ -105,6 +105,46 @@ public function click($name) return $this; } + + /** + * Click all elements in a Collection using a variable as the variable + * eg. ->clickAll(Confirmations::all(), 'label[for={$1}]', 'slug') + * the Confirmation Model would have a slug field which populates + * the