-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adicionado withWebDriver no ScraPHPBuilder passado logs para classe scraphp adicionado builder para scraphp
- Loading branch information
1 parent
9b0242a
commit 555dbce
Showing
33 changed files
with
674 additions
and
551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,12 +20,20 @@ jobs: | |
|
||
- name: Download dependencies | ||
run: composer update --no-interaction --no-progress | ||
|
||
|
||
- uses: isbang/[email protected] | ||
with: | ||
compose-file: "./docker-compose.yml" | ||
down-flags: "--volumes" | ||
services: | | ||
php | ||
selenium | ||
- name: Start test servers | ||
- name: Sleep to wait for Selenium | ||
shell: bash | ||
run: | | ||
cd tests/fixtures | ||
php -S 0.0.0.0:8000 & | ||
sleep 30 & | ||
- name: Run tests | ||
run: ./vendor/bin/pest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
<?php | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace ScraPHP\HttpClient; | ||
|
||
use ScraPHP\HttpClient\FilteredElement; | ||
|
||
interface Page | ||
{ | ||
public function statusCode(): int; | ||
|
||
public function url(): string; | ||
|
||
public function htmlBody(): string; | ||
|
||
public function headers(): array; | ||
|
||
public function header(string $key): array; | ||
|
||
public function filterCSS(string $cssSelector): ?FilteredElement; | ||
public function filterCSSEach(string $cssSelector, callable $callback): array; | ||
|
||
public function filterCSSEach(string $cssSelector, callable $callback): array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.