WebDriver: correctly handle main frame handles
[WebKit-https.git] / Source / WebDriver / Session.h
index 1b3c29b525f975fd57931a4d5c70ee9f809fe80b..19d585eff04ef606c70034ad36945737ed1b0e3b 100644 (file)
@@ -104,6 +104,9 @@ public:
 private:
     Session(std::unique_ptr<SessionHost>&&);
 
+    void switchToTopLevelBrowsingContext(std::optional<String>);
+    void switchToBrowsingContext(std::optional<String>);
+
     RefPtr<Inspector::InspectorObject> createElement(RefPtr<Inspector::InspectorValue>&&);
     RefPtr<Inspector::InspectorObject> createElement(const String& elementID);
     RefPtr<Inspector::InspectorObject> extractElement(Inspector::InspectorValue&);