Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions browser-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ $page->assertSee('Welcome to Some Subdomain');
[hover](#hover)
[submit](#submit)
[value](#value)
[withinIframe](#within-iframe)
[withinFrame](#within-frame)
[resize](#resize)
[script](#script)
[content](#content)
Expand Down Expand Up @@ -1124,16 +1124,16 @@ The `value` method gets the value of the element matching the given selector:
$value = $page->value('input[name=email]');
```

<a name="with-in-iframe"></a>
<a name="within-frame"></a>

### withinIframe
### withinFrame

The `withinIframe` method allows you to interact with elements inside an iframe:
The `withinFrame` method allows you to interact with elements inside an iframe:

```php
use Pest\Browser\Api\PendingAwaitablePage;
use Pest\Browser\Api\AwaitableWebpage;

$page->withinIframe('.iframe-container', function (PendingAwaitablePage $page) {
$page->withinFrame('.iframe-container', function (AwaitableWebpage $page) {
$page->type('frame-input', 'Hello iframe')
->click('frame-button');
});
Expand Down