Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
The HTML structure of the https://api-platform.com/ site changed.
  • Loading branch information
rpayanm authored Oct 5, 2024
1 parent 8c86705 commit d1d7122
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ $client->request('GET', 'https://api-platform.com'); // Yes, this website is 100
$client->clickLink('Getting started');

// Wait for an element to be present in the DOM (even if hidden)
$crawler = $client->waitFor('#installing-the-framework');
$crawler = $client->waitFor('#bootstraping-the-core-library');
// Alternatively, wait for an element to be visible
$crawler = $client->waitForVisibility('#installing-the-framework');
$crawler = $client->waitForVisibility('#bootstraping-the-core-library');

echo $crawler->filter('#installing-the-framework')->text();
echo $crawler->filter('#bootstraping-the-core-library')->text();
$client->takeScreenshot('screen.png'); // Yeah, screenshot!
```

Expand Down

0 comments on commit d1d7122

Please sign in to comment.