我测试点击链接,然后打开新的浏览器窗口,在新的浏览器窗口中,我需要检查一些元素是否存在.如何切换到使用BEHAT/MINK打开的新浏览器窗口?
我无法使用适用于 PHP 的 AWS 开发工具包创建预签名 Url。我的代码是 -
function connect()
{
// Instantiate the S3 class and point it at the desired host
date_default_timezone_set('GMT');
return S3Client::factory(array(
'region' => 'us-west-2',
'version' => 'latest',
'credentials' => [
'key' => $key,
'secret' => $secret
]
));
function getSignedS3URLForObject($fileName)
{
// GET CURRENT DATE
$milliseconds = round(microtime(true) * 1000);
$expiration = $milliseconds + (1000 * 60 * 60 * 24 * 30 * 2);
$s3 = self::connect();
$command = $s3->getCommand('GetObject', array(
'Bucket' => self::$customerBucket,
'Key' …Run Code Online (Sandbox Code Playgroud)