diff --git a/src/Generator.php b/src/Generator.php
index fcecd01cee80b23239641d3482ca1cd390d18396..2a1e8797d12bdaa15114990e58ed8ad882677286 100644
--- a/src/Generator.php
+++ b/src/Generator.php
@@ -48,6 +48,7 @@ class Generator {
     $allowed[] = 'ci';
     $allowed[] = 'report';
     $allowed[] = 'cookiePath';
+    $allowed[] = 'onBeforeScript';
     $filtered = array_filter(
       $options,
       function ($key) use ($allowed) {
@@ -108,6 +109,7 @@ class Generator {
       'postInteractionWait',
       'scrollToSelector',
       'requireSameDimensions',
+      'cookiePath'
     ];
     $filtered = array_filter(
       $options,