Skip to content

Commit f851bc2

Browse files
authored
Merge pull request #375 from dunglas/docs/v0.8.0
docs: update CHANGELOG, add some docs and update geckodriver
2 parents 1334573 + a09a025 commit f851bc2

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
CHANGELOG
22
=========
33

4+
0.8.0
5+
-----
6+
7+
* Upgrade ChromeDriver to version 85.0.4183.87
8+
* Upgrade geckodriver to version 0.27.0
9+
* Add a `Client::waitForVisibility()` method to wait for an element to appear
10+
* Allow passing options to the browser manager from `PantherTestCase::createPantherClient()`
11+
* Add a `Client::ping()` method to check if the WebDriver connection is still active
12+
* Fix setting a new value to an input field when there is an existing value
13+
* Improve the error message when the web server crashes
14+
* Throw an explanative `LogicException` when driver is not started yet
15+
* Prevent timeouts caused by the integrated web server
16+
* Fix the value of cookie secure flags
17+
* Throw an exception when getting history (unsupported feature)
18+
* Add docs to use Panther with GitHub Actions
19+
* Various bug fixes and documentation improvements
20+
421
0.7.1
522
-----
623

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ $client = \Symfony\Component\Panther\Client::createFirefoxClient();
9090
$client->request('GET', 'https://api-platform.com'); // Yes, this website is 100% written in JavaScript
9191
$client->clickLink('Get started');
9292

93-
// Wait for an element to be rendered
93+
// Wait for an element to be present in the DOM (even if hidden)
9494
$crawler = $client->waitFor('#installing-the-framework');
95+
// Alternatively, wait for an element to be visible
96+
$crawler = $client->waitForVisibility('#installing-the-framework');
9597

9698
echo $crawler->filter('#installing-the-framework')->text();
9799
$client->takeScreenshot('screen.png'); // Yeah, screenshot!
@@ -224,6 +226,10 @@ class ChatTest extends PantherTestCase
224226
}
225227
```
226228

229+
### Checking the State of the WebDriver Connection
230+
231+
Use the `Client::ping()` method to check if the WebDriver connection is still active (useful for long running tasks).
232+
227233
## Additional Documentation
228234

229235
Since Panther implements the API of popular libraries, it already has extensive documentation:

0 commit comments

Comments
 (0)