mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8340 from open-sausages/pulls/4/no-that-button
Fix failing HTML button test step
This commit is contained in:
commit
f0e54363ff
@ -241,7 +241,7 @@ JS;
|
||||
if (null === $element) {
|
||||
// If it can't find the exact name, find one that starts with the phrase
|
||||
// Helpful for "Insert link" which has a conditional label for keyboard shortcut
|
||||
$xpath = "//*[@aria-label^='" . $button . "']";
|
||||
$xpath = "//*[starts-with(@aria-label, '" . $button . "')]";
|
||||
$element = $session->getPage()->find('xpath', $xpath);
|
||||
|
||||
if (null === $element) {
|
||||
|
Loading…
Reference in New Issue
Block a user