@@ -28,7 +28,6 @@ import {
28
28
HandlerNotInitializedError ,
29
29
StagehandDefaultError ,
30
30
ExperimentalApiConflictError ,
31
- ExperimentalNotConfiguredError ,
32
31
} from "../types/stagehandErrors" ;
33
32
import { StagehandAPIError } from "@/types/stagehandApiErrors" ;
34
33
import { scriptContent } from "@/lib/dom/build/scriptContent" ;
@@ -633,9 +632,6 @@ ${scriptContent} \
633
632
// If actionOrOptions is an ObserveResult, we call actFromObserveResult.
634
633
// We need to ensure there is both a selector and a method in the ObserveResult.
635
634
if ( typeof actionOrOptions === "object" && actionOrOptions !== null ) {
636
- if ( "iframes" in actionOrOptions && ! this . stagehand . experimental ) {
637
- throw new ExperimentalNotConfiguredError ( "iframes" ) ;
638
- }
639
635
// If it has selector AND method => treat as ObserveResult
640
636
if ( "selector" in actionOrOptions && "method" in actionOrOptions ) {
641
637
const observeResult = actionOrOptions as ObserveResult ;
@@ -770,10 +766,6 @@ ${scriptContent} \
770
766
iframes,
771
767
} = options ;
772
768
773
- if ( iframes !== undefined && ! this . stagehand . experimental ) {
774
- throw new ExperimentalNotConfiguredError ( "iframes" ) ;
775
- }
776
-
777
769
if ( this . api ) {
778
770
const opts = { ...options , frameId : this . frameId } ;
779
771
const result = await this . api . extract < T > ( opts ) ;
@@ -878,10 +870,6 @@ ${scriptContent} \
878
870
iframes,
879
871
} = options ;
880
872
881
- if ( iframes !== undefined && ! this . stagehand . experimental ) {
882
- throw new ExperimentalNotConfiguredError ( "iframes" ) ;
883
- }
884
-
885
873
if ( this . api ) {
886
874
const opts = { ...options , frameId : this . frameId } ;
887
875
const result = await this . api . observe ( opts ) ;
0 commit comments