webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
WebKit::WebAutomationSession Class Referencefinal

#include <WebAutomationSession.h>

Inheritance diagram for WebKit::WebAutomationSession:
API::ObjectImpl< API::Object::Type::AutomationSession > IPC::MessageReceiver API::Object

Public Member Functions

 WebAutomationSession ()
 
 ~WebAutomationSession ()
 
void setClient (std::unique_ptr< API::AutomationSessionClient >)
 
void setSessionIdentifier (const String &sessionIdentifier)
 
String sessionIdentifier () const
 
WebProcessPoolprocessPool () const
 
void setProcessPool (WebProcessPool *)
 
void navigationOccurredForPage (const WebPageProxy &)
 
void inspectorFrontendLoaded (const WebPageProxy &)
 
void keyboardEventsFlushedForPage (const WebPageProxy &)
 
void terminate ()
 
void getBrowsingContexts (Inspector::ErrorString &, RefPtr< Inspector::Protocol::Array< Inspector::Protocol::Automation::BrowsingContext >> &) override
 
void getBrowsingContext (Inspector::ErrorString &, const String &, RefPtr< Inspector::Protocol::Automation::BrowsingContext > &) override
 
void createBrowsingContext (Inspector::ErrorString &, String *) override
 
void closeBrowsingContext (Inspector::ErrorString &, const String &) override
 
void switchToBrowsingContext (Inspector::ErrorString &, const String &browsingContextHandle, const String *optionalFrameHandle) override
 
void navigateBrowsingContext (Inspector::ErrorString &, const String &handle, const String &url, Ref< NavigateBrowsingContextCallback > &&) override
 
void goBackInBrowsingContext (Inspector::ErrorString &, const String &, Ref< GoBackInBrowsingContextCallback > &&) override
 
void goForwardInBrowsingContext (Inspector::ErrorString &, const String &, Ref< GoForwardInBrowsingContextCallback > &&) override
 
void reloadBrowsingContext (Inspector::ErrorString &, const String &, Ref< ReloadBrowsingContextCallback > &&) override
 
void evaluateJavaScriptFunction (Inspector::ErrorString &, const String &browsingContextHandle, const String *optionalFrameHandle, const String &function, const Inspector::InspectorArray &arguments, const bool *optionalExpectsImplicitCallbackArgument, const int *optionalCallbackTimeout, Ref< Inspector::AutomationBackendDispatcherHandler::EvaluateJavaScriptFunctionCallback > &&) override
 
void performMouseInteraction (Inspector::ErrorString &, const String &handle, const Inspector::InspectorObject &requestedPosition, const String &mouseButton, const String &mouseInteraction, const Inspector::InspectorArray &keyModifiers, RefPtr< Inspector::Protocol::Automation::Point > &updatedPosition) override
 
void performKeyboardInteractions (Inspector::ErrorString &, const String &handle, const Inspector::InspectorArray &interactions, Ref< PerformKeyboardInteractionsCallback > &&) override
 
void takeScreenshot (Inspector::ErrorString &, const String &handle, Ref< Inspector::AutomationBackendDispatcherHandler::TakeScreenshotCallback > &&) override
 
void resolveChildFrameHandle (Inspector::ErrorString &, const String &browsingContextHandle, const String *optionalFrameHandle, const int *optionalOrdinal, const String *optionalName, const String *optionalNodeHandle, Ref< ResolveChildFrameHandleCallback > &&) override
 
void resolveParentFrameHandle (Inspector::ErrorString &, const String &browsingContextHandle, const String &frameHandle, Ref< ResolveParentFrameHandleCallback > &&) override
 
void computeElementLayout (Inspector::ErrorString &, const String &browsingContextHandle, const String &frameHandle, const String &nodeHandle, const bool *optionalScrollIntoViewIfNeeded, const bool *useViewportCoordinates, Ref< Inspector::AutomationBackendDispatcherHandler::ComputeElementLayoutCallback > &&) override
 
void isShowingJavaScriptDialog (Inspector::ErrorString &, const String &browsingContextHandle, bool *result) override
 
void dismissCurrentJavaScriptDialog (Inspector::ErrorString &, const String &browsingContextHandle) override
 
void acceptCurrentJavaScriptDialog (Inspector::ErrorString &, const String &browsingContextHandle) override
 
void messageOfCurrentJavaScriptDialog (Inspector::ErrorString &, const String &browsingContextHandle, String *text) override
 
void setUserInputForCurrentJavaScriptPrompt (Inspector::ErrorString &, const String &browsingContextHandle, const String &text) override
 
void getAllCookies (Inspector::ErrorString &, const String &browsingContextHandle, Ref< GetAllCookiesCallback > &&) override
 
void deleteSingleCookie (Inspector::ErrorString &, const String &browsingContextHandle, const String &cookieName, Ref< DeleteSingleCookieCallback > &&) override
 
void addSingleCookie (Inspector::ErrorString &, const String &browsingContextHandle, const Inspector::InspectorObject &cookie, Ref< AddSingleCookieCallback > &&) override
 
void deleteAllCookies (Inspector::ErrorString &, const String &browsingContextHandle) override
 
- Public Member Functions inherited from API::ObjectImpl< API::Object::Type::AutomationSession >
virtual ~ObjectImpl ()
 
- Public Member Functions inherited from API::Object
virtual ~Object ()
 
- Public Member Functions inherited from IPC::MessageReceiver
virtual ~MessageReceiver ()
 
virtual void didReceiveSyncMessage (Connection &, Decoder &, std::unique_ptr< Encoder > &)
 

Additional Inherited Members

- Public Types inherited from API::Object
enum  Type {
  Type::Null = 0, Type::Array, Type::AuthenticationChallenge, Type::AuthenticationDecisionListener,
  Type::CertificateInfo, Type::Connection, Type::ContextMenuItem, Type::Credential,
  Type::Data, Type::Dictionary, Type::Error, Type::FrameHandle,
  Type::Image, Type::PageGroupData, Type::PageHandle, Type::PageGroupHandle,
  Type::ProtectionSpace, Type::RenderLayer, Type::RenderObject, Type::SecurityOrigin,
  Type::SessionState, Type::SerializedScriptValue, Type::String, Type::URL,
  Type::URLRequest, Type::URLResponse, Type::UserContentURLPattern, Type::UserScript,
  Type::UserStyleSheet, Type::WebArchive, Type::WebArchiveResource, Type::Boolean,
  Type::Double, Type::UInt64, Type::Point, Type::Size,
  Type::Rect, Type::ApplicationCacheManager, Type::AutomationSession, Type::BackForwardList,
  Type::BackForwardListItem, Type::CacheManager, Type::ColorPickerResultListener, Type::ContextMenuListener,
  Type::CookieManager, Type::Download, Type::ExperimentalFeature, Type::FormSubmissionListener,
  Type::Frame, Type::FrameInfo, Type::FramePolicyListener, Type::FullScreenManager,
  Type::GeolocationManager, Type::GeolocationPermissionRequest, Type::HitTestResult, Type::GeolocationPosition,
  Type::GrammarDetail, Type::IconDatabase, Type::Inspector, Type::KeyValueStorageManager,
  Type::MediaCacheManager, Type::Navigation, Type::NavigationAction, Type::NavigationData,
  Type::NavigationResponse, Type::Notification, Type::NotificationManager, Type::NotificationPermissionRequest,
  Type::OpenPanelParameters, Type::OpenPanelResultListener, Type::OriginDataManager, Type::Page,
  Type::PageConfiguration, Type::PageGroup, Type::ProcessPool, Type::ProcessPoolConfiguration,
  Type::PluginSiteDataManager, Type::Preferences, Type::ResourceLoadStatisticsStore, Type::RunBeforeUnloadConfirmPanelResultListener,
  Type::RunJavaScriptAlertResultListener, Type::RunJavaScriptConfirmResultListener, Type::RunJavaScriptPromptResultListener, Type::TextChecker,
  Type::UserContentController, Type::UserContentExtension, Type::UserContentExtensionStore, Type::UserContentWorld,
  Type::UserInitiatedAction, Type::UserMediaPermissionCheck, Type::UserMediaPermissionRequest, Type::Vibration,
  Type::ViewportAttributes, Type::VisitedLinkStore, Type::WebResourceLoadStatisticsManager, Type::WebsiteDataRecord,
  Type::WebsiteDataStore, Type::WebsitePolicies, Type::WindowFeatures, Type::Bundle,
  Type::BundleBackForwardList, Type::BundleBackForwardListItem, Type::BundleCSSStyleDeclarationHandle, Type::BundleDOMWindowExtension,
  Type::BundleFileHandle, Type::BundleFrame, Type::BundleHitTestResult, Type::BundleInspector,
  Type::BundleNavigationAction, Type::BundleNodeHandle, Type::BundlePage, Type::BundlePageBanner,
  Type::BundlePageGroup, Type::BundlePageOverlay, Type::BundleRangeHandle, Type::BundleScriptWorld,
  Type::EditCommandProxy, Type::ObjCObjectGraph, Type::View
}
 
- Static Public Member Functions inherited from API::Object
static voidwrap (API::Object *)
 
static API::Objectunwrap (void *)
 
- Static Public Attributes inherited from API::ObjectImpl< API::Object::Type::AutomationSession >
static const Type APIType
 
- Protected Member Functions inherited from API::ObjectImpl< API::Object::Type::AutomationSession >
 ObjectImpl ()
 
Type type () const override
 
- Protected Member Functions inherited from API::Object
 Object ()
 

Constructor & Destructor Documentation

◆ WebAutomationSession()

WebKit::WebAutomationSession::WebAutomationSession ( )

◆ ~WebAutomationSession()

WebKit::WebAutomationSession::~WebAutomationSession ( )

Member Function Documentation

◆ acceptCurrentJavaScriptDialog()

void WebKit::WebAutomationSession::acceptCurrentJavaScriptDialog ( Inspector::ErrorString errorString,
const String browsingContextHandle 
)
override

◆ addSingleCookie()

void WebKit::WebAutomationSession::addSingleCookie ( Inspector::ErrorString ,
const String browsingContextHandle,
const Inspector::InspectorObject cookie,
Ref< AddSingleCookieCallback > &&   
)
override

◆ closeBrowsingContext()

void WebKit::WebAutomationSession::closeBrowsingContext ( Inspector::ErrorString errorString,
const String handle 
)
override

◆ computeElementLayout()

void WebKit::WebAutomationSession::computeElementLayout ( Inspector::ErrorString ,
const String browsingContextHandle,
const String frameHandle,
const String nodeHandle,
const bool *  optionalScrollIntoViewIfNeeded,
const bool *  useViewportCoordinates,
Ref< Inspector::AutomationBackendDispatcherHandler::ComputeElementLayoutCallback > &&   
)
override

◆ createBrowsingContext()

void WebKit::WebAutomationSession::createBrowsingContext ( Inspector::ErrorString errorString,
String handle 
)
override

◆ deleteAllCookies()

void WebKit::WebAutomationSession::deleteAllCookies ( Inspector::ErrorString ,
const String browsingContextHandle 
)
override

◆ deleteSingleCookie()

void WebKit::WebAutomationSession::deleteSingleCookie ( Inspector::ErrorString ,
const String browsingContextHandle,
const String cookieName,
Ref< DeleteSingleCookieCallback > &&   
)
override

◆ dismissCurrentJavaScriptDialog()

void WebKit::WebAutomationSession::dismissCurrentJavaScriptDialog ( Inspector::ErrorString errorString,
const String browsingContextHandle 
)
override

◆ evaluateJavaScriptFunction()

void WebKit::WebAutomationSession::evaluateJavaScriptFunction ( Inspector::ErrorString ,
const String browsingContextHandle,
const String optionalFrameHandle,
const String function,
const Inspector::InspectorArray arguments,
const bool *  optionalExpectsImplicitCallbackArgument,
const int *  optionalCallbackTimeout,
Ref< Inspector::AutomationBackendDispatcherHandler::EvaluateJavaScriptFunctionCallback > &&   
)
override

◆ getAllCookies()

void WebKit::WebAutomationSession::getAllCookies ( Inspector::ErrorString ,
const String browsingContextHandle,
Ref< GetAllCookiesCallback > &&   
)
override

◆ getBrowsingContext()

void WebKit::WebAutomationSession::getBrowsingContext ( Inspector::ErrorString errorString,
const String handle,
RefPtr< Inspector::Protocol::Automation::BrowsingContext > &  context 
)
override

◆ getBrowsingContexts()

void WebKit::WebAutomationSession::getBrowsingContexts ( Inspector::ErrorString errorString,
RefPtr< Inspector::Protocol::Array< Inspector::Protocol::Automation::BrowsingContext >> &  contexts 
)
override

◆ goBackInBrowsingContext()

void WebKit::WebAutomationSession::goBackInBrowsingContext ( Inspector::ErrorString errorString,
const String handle,
Ref< GoBackInBrowsingContextCallback > &&  callback 
)
override

◆ goForwardInBrowsingContext()

void WebKit::WebAutomationSession::goForwardInBrowsingContext ( Inspector::ErrorString errorString,
const String handle,
Ref< GoForwardInBrowsingContextCallback > &&  callback 
)
override

◆ inspectorFrontendLoaded()

void WebKit::WebAutomationSession::inspectorFrontendLoaded ( const WebPageProxy page)

◆ isShowingJavaScriptDialog()

void WebKit::WebAutomationSession::isShowingJavaScriptDialog ( Inspector::ErrorString errorString,
const String browsingContextHandle,
bool *  result 
)
override

◆ keyboardEventsFlushedForPage()

void WebKit::WebAutomationSession::keyboardEventsFlushedForPage ( const WebPageProxy page)

◆ messageOfCurrentJavaScriptDialog()

void WebKit::WebAutomationSession::messageOfCurrentJavaScriptDialog ( Inspector::ErrorString errorString,
const String browsingContextHandle,
String text 
)
override

◆ navigateBrowsingContext()

void WebKit::WebAutomationSession::navigateBrowsingContext ( Inspector::ErrorString errorString,
const String handle,
const String url,
Ref< NavigateBrowsingContextCallback > &&  callback 
)
override

◆ navigationOccurredForPage()

void WebKit::WebAutomationSession::navigationOccurredForPage ( const WebPageProxy page)

◆ performKeyboardInteractions()

void WebKit::WebAutomationSession::performKeyboardInteractions ( Inspector::ErrorString ,
const String handle,
const Inspector::InspectorArray interactions,
Ref< PerformKeyboardInteractionsCallback > &&   
)
override

◆ performMouseInteraction()

void WebKit::WebAutomationSession::performMouseInteraction ( Inspector::ErrorString errorString,
const String handle,
const Inspector::InspectorObject requestedPosition,
const String mouseButton,
const String mouseInteraction,
const Inspector::InspectorArray keyModifiers,
RefPtr< Inspector::Protocol::Automation::Point > &  updatedPosition 
)
override

◆ processPool()

WebProcessPool* WebKit::WebAutomationSession::processPool ( ) const
inline

◆ reloadBrowsingContext()

void WebKit::WebAutomationSession::reloadBrowsingContext ( Inspector::ErrorString errorString,
const String handle,
Ref< ReloadBrowsingContextCallback > &&  callback 
)
override

◆ resolveChildFrameHandle()

void WebKit::WebAutomationSession::resolveChildFrameHandle ( Inspector::ErrorString errorString,
const String browsingContextHandle,
const String optionalFrameHandle,
const int *  optionalOrdinal,
const String optionalName,
const String optionalNodeHandle,
Ref< ResolveChildFrameHandleCallback > &&  callback 
)
override

◆ resolveParentFrameHandle()

void WebKit::WebAutomationSession::resolveParentFrameHandle ( Inspector::ErrorString errorString,
const String browsingContextHandle,
const String frameHandle,
Ref< ResolveParentFrameHandleCallback > &&  callback 
)
override

◆ sessionIdentifier()

String WebKit::WebAutomationSession::sessionIdentifier ( ) const
inline

◆ setClient()

void WebKit::WebAutomationSession::setClient ( std::unique_ptr< API::AutomationSessionClient client)

◆ setProcessPool()

void WebKit::WebAutomationSession::setProcessPool ( WebKit::WebProcessPool processPool)

◆ setSessionIdentifier()

void WebKit::WebAutomationSession::setSessionIdentifier ( const String sessionIdentifier)
inline

◆ setUserInputForCurrentJavaScriptPrompt()

void WebKit::WebAutomationSession::setUserInputForCurrentJavaScriptPrompt ( Inspector::ErrorString errorString,
const String browsingContextHandle,
const String text 
)
override

◆ switchToBrowsingContext()

void WebKit::WebAutomationSession::switchToBrowsingContext ( Inspector::ErrorString errorString,
const String browsingContextHandle,
const String optionalFrameHandle 
)
override

◆ takeScreenshot()

void WebKit::WebAutomationSession::takeScreenshot ( Inspector::ErrorString ,
const String handle,
Ref< Inspector::AutomationBackendDispatcherHandler::TakeScreenshotCallback > &&   
)
override

◆ terminate()

void WebKit::WebAutomationSession::terminate ( )

The documentation for this class was generated from the following files: