From f33789e0eb2c0519d20ee734d0bb51aafdf50ab2 Mon Sep 17 00:00:00 2001 From: Claudiu Cristea Date: Wed, 2 Nov 2016 16:33:08 +0200 Subject: [PATCH] Tryin' to select the inner fieldset, is selecting both --- tests/Selector/NamedSelectorTest.php | 1 + tests/Selector/fixtures/test.html | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/tests/Selector/NamedSelectorTest.php b/tests/Selector/NamedSelectorTest.php index 5124a4628..ebcf53fd4 100644 --- a/tests/Selector/NamedSelectorTest.php +++ b/tests/Selector/NamedSelectorTest.php @@ -75,6 +75,7 @@ public function getSelectorTests() // Fixture file, selector name, locator, expected number of exact matched elements, expected number of partial matched elements if different return array( 'fieldset' => array('test.html', 'fieldset', 'fieldset-text', 2, 3), + 'fieldset nested' => array('test.html', 'fieldset', 'inner', 1), 'field (name/placeholder/label)' => array('test.html', 'field', 'the-field', $fieldCount), 'field (input, with-id)' => array('test.html', 'field', 'the-field-input', 1), diff --git a/tests/Selector/fixtures/test.html b/tests/Selector/fixtures/test.html index 1190e9ea6..2a04a8f84 100644 --- a/tests/Selector/fixtures/test.html +++ b/tests/Selector/fixtures/test.html @@ -56,6 +56,14 @@
fieldset-text
+ + +
+ outer +
+ inner +
+