Skip to content

Instantly share code, notes, and snippets.

@konkon1234
konkon1234 / Vagrantfile
Created April 9, 2017 06:37
Vagrantfile template for ubuntu16.04 docker, docker-compose
# -*- mode: ruby -*-
# vi: set ft=ruby :
$is_windows = RbConfig::CONFIG['host_os'] =~ /mswin|msys|mingw|cygwin|bccwin/i
$is_osx = RbConfig::CONFIG['host_os'] =~ /darwin/i
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.box_check_update = false
@konkon1234
konkon1234 / takeFullScreenshot.php
Last active June 9, 2024 22:40
page full capture function for facebook/php-webdriver Selenium WebDriver bindings for PHP
<?php
/**
* page full capture for https://github.com/facebook/php-webdriver
*
* @param RemoteWebDriver $driver
* @param string $screenshot_name capture save path
* @throws Exception
*/
public function takeFullScreenshot($driver, $screenshot_name)