File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 11CHANGELOG
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+
4210.7.1
522-----
623
Original file line number Diff line number Diff 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
9698echo $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
229235Since Panther implements the API of popular libraries, it already has extensive documentation:
You can’t perform that action at this time.
0 commit comments