Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
Add missing FileChooser resource
Browse files Browse the repository at this point in the history
  • Loading branch information
nesk committed Nov 30, 2020
1 parent 77bdd4d commit d719d83
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Resources/FileChooser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Nesk\Puphpeteer\Resources;

use Nesk\Rialto\Data\BasicResource;

class FileChooser extends BasicResource
{
//
}
3 changes: 3 additions & 0 deletions tests/ResourceInstantiator.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public function __construct(array $browserOptions, string $url) {
'ExecutionContext' => function ($puppeteer) {
return $this->Frame($puppeteer)->executionContext();
},
'FileChooser' => function () {
return new UntestableResource;
},
'Frame' => function ($puppeteer) {
return $this->Page($puppeteer)->mainFrame();
},
Expand Down

0 comments on commit d719d83

Please sign in to comment.