Skip to content

Commit

Permalink
EWPP-2556: Add workaround for context submenu appearance in wysiwyg.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergepavle committed Oct 26, 2022
1 parent b8b7853 commit ce6e5d1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ protected function openCellPropertiesDialog(string $right_click_selector): void
$this->getSession()->switchToIFrame($page->find('xpath', "//div[contains(concat(' ', normalize-space(@class), ' '), ' cke_menu_panel ') and not(@hidden)]/iframe")->getAttribute('id'));
$this->clickLink('Cell');
$this->getSession()->switchToIFrame();
// @todo Fix in EWPP-2734 the way for waiting for the showing of the context submenu.
$web_assert->waitForElementVisible('xpath', "//div[contains(concat(' ', normalize-space(@class), ' '), ' cke_menu_panel ')][last()]/iframe");
$this->getSession()->wait(1000);
$this->getSession()->switchToIFrame($page->find('xpath', "//div[contains(concat(' ', normalize-space(@class), ' '), ' cke_menu_panel ') and not(@hidden)][last()]/iframe")->getAttribute('id'));
$this->clickLink('Cell Properties');
$this->getSession()->switchToIFrame();
Expand Down

0 comments on commit ce6e5d1

Please sign in to comment.