Skip to content

Commit

Permalink
Fixed selector
Browse files Browse the repository at this point in the history
  • Loading branch information
micszo committed Nov 15, 2023
1 parent 1d0f218 commit c7fdb2f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/Behat/Component/Fields/RichText.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ private function executeCommand(string $commandName): void
private function clickElementsToolbarButton(string $buttonText): void
{
$script = sprintf(
"Array.from(document.querySelectorAll('%s %s')).filter(e => e.textContent =='%s')[0].click()",
$this->getLocator('additionalToolbar')->getSelector(),
"Array.from(document.querySelectorAll('%s')).filter(e => e.textContent =='%s')[0].click()",
$this->getLocator('toolbarElement')->getSelector(),
$buttonText
);
Expand Down

0 comments on commit c7fdb2f

Please sign in to comment.