Skip to content

Commit 3edd645

Browse files
committed
Updating the test
1 parent 3836b15 commit 3edd645

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JoomlaBrowser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,11 +678,11 @@ public function clickToolbarButton($button)
678678
$I = $this;
679679
$input = strtolower($button);
680680

681-
if($this->config['window_size'] == '480x320')
681+
$element = $this->webDriver->findElements(WebDriverBy::linkText("Toolbar"));
682+
if(!empty($element) && $element[0]->isDisplayed())
682683
{
683684
$I->click('Toolbar');
684685
}
685-
686686
switch($input)
687687
{
688688
case "new":

0 commit comments

Comments
 (0)