We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3ed0d4 commit 2d3a0a2Copy full SHA for 2d3a0a2
1 file changed
browser-testing.md
@@ -1048,11 +1048,11 @@ $value = $page->value('input[name=email]');
1048
The `withinIframe` method allows you to interact with elements inside an iframe:
1049
1050
```php
1051
-use Pest\Browser\Api\AwaitableWebpage;
+use Pest\Browser\Api\PendingAwaitablePage;
1052
1053
-$page->withinIframe('.iframe-container', function (AwaitableWebpage $page) {
1054
- $page->type('frame-input', 'Hello iframe');
1055
- $page->click('frame-button');
+$page->withinIframe('.iframe-container', function (PendingAwaitablePage $page) {
+ $page->type('frame-input', 'Hello iframe')
+ ->click('frame-button');
1056
});
1057
```
1058
0 commit comments