Fix failing HTML button test step

This commit is contained in:
Luke Edwards 2018-08-23 11:07:40 +12:00
parent dcebf56056
commit 1b67bb08c8

View File

@ -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) {