Skip to content

Commit

Permalink
Merge pull request #5 from kschroeder/master
Browse files Browse the repository at this point in the history
Fixed an issue where it was overeager to tweet
  • Loading branch information
kschroeder authored Jan 27, 2017
2 parents 399fd91 + 26a3c92 commit 0980b8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Actions/Tweet.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ public function tweet($text)

$this->webDriver->getKeyboard()->sendKeys($text);

$this->webDriver->wait(5)->until(ExpectedCondition::elementExists($this->theme->getTweetButton(), WebDriver::BY_XPATH));
$element = $this->webDriver->byXpath($this->theme->getTweetButton());

$this->webDriver->wait(5)->until(ExpectedCondition::visibilityOf($element));
$element->click();

}
Expand Down

0 comments on commit 0980b8e

Please sign in to comment.