Skip to content

Commit eb0e5a1

Browse files
author
Mihail Geshoski
committed
MDL-47410 behat: Create custom selector for the date and datetime fields
Creates a custom field selector to locate the requested date or datetime form fields.
1 parent 8844095 commit eb0e5a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/behat/classes/partial_named_selector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ public function __construct() {
267267
.//descendant::span[@data-inplaceeditable][descendant::a[%titleMatch%]]
268268
XPATH
269269
,
270+
'date_time' => <<<XPATH
271+
.//fieldset[(%idMatch% or ./legend[%tagTextMatch%]) and (@data-fieldtype='date' or @data-fieldtype='date_time')]
272+
XPATH
270273
],
271274
];
272275

0 commit comments

Comments
 (0)