Skip to content

Commit

Permalink
Fix - constant screenshot is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ziishaned committed Apr 15, 2018
1 parent 560e7f9 commit 39247d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/Util.php
Expand Up @@ -13,9 +13,9 @@ trait Util
*
* @return string The screenshot in PNG format.
*/
public function takeScreenshot($save_as = null)
public function takeScreenshotAndSave($save_as = null)
{
$data = $this->driverCommand(static::GET, BaseConstants::$SCREENSHOT);
$data = $this->driverCommand(static::GET, BaseConstants::$GETSCREENSHOT);
$screenshot = base64_decode($data);
if ($save_as) {
file_put_contents($save_as, $screenshot);
Expand Down

0 comments on commit 39247d0

Please sign in to comment.