From 59d0508f8f15a6e0953a385f31a79e851b9c96c1 Mon Sep 17 00:00:00 2001 From: Richard Browne Date: Tue, 19 Mar 2024 20:35:40 +0000 Subject: [PATCH 1/2] Add reference to the new helper method `sreenshotElement` --- dusk.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dusk.md b/dusk.md index 83302eb8d0c..beb5813d973 100644 --- a/dusk.md +++ b/dusk.md @@ -553,6 +553,10 @@ The `responsiveScreenshots` method may be used to take a series of screenshots a $browser->responsiveScreenshots('filename'); +The `screenshotElement` method may be used to take a screenshot of a specific element on the page: + + $browser->screenshotElement('selector', 'filename'); + ### Storing Console Output to Disk From a83d22e81468c1e0e051b45e70ced6b2a6c4d974 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 20 Mar 2024 14:14:56 -0600 Subject: [PATCH 2/2] Update dusk.md --- dusk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dusk.md b/dusk.md index beb5813d973..84405b767b8 100644 --- a/dusk.md +++ b/dusk.md @@ -555,7 +555,7 @@ The `responsiveScreenshots` method may be used to take a series of screenshots a The `screenshotElement` method may be used to take a screenshot of a specific element on the page: - $browser->screenshotElement('selector', 'filename'); + $browser->screenshotElement('#selector', 'filename'); ### Storing Console Output to Disk