WD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
webdriver Namespace Reference

Namespaces

namespace  internal
 

Classes

class  AlertTextCommand
 
class  AcceptAlertCommand
 
class  DismissAlertCommand
 
class  AppCacheStatusCommand
 
class  BrowserConnectionCommand
 
class  CISCO_VolumeCommand
 
class  CISCO_StateCommand
 
class  CISCO_SeekCommand
 
class  CISCO_MuteCommand
 
class  CISCO_PlaybackSpeedCommand
 
class  Command
 
class  CookieCommand
 
class  NamedCookieCommand
 
class  CreateSession
 
class  ElementCommand
 
class  ElementAttributeCommand
 
class  ElementClearCommand
 
class  ElementCssCommand
 
class  ElementDisplayedCommand
 
class  ElementEnabledCommand
 
class  ElementEqualsCommand
 
class  ElementLocationCommand
 
class  ElementLocationInViewCommand
 
class  ElementNameCommand
 
class  ElementSelectedCommand
 
class  ElementSizeCommand
 
class  ElementSubmitCommand
 
class  ElementValueCommand
 
class  ElementTextCommand
 
class  ElementScreenshotCommand
 
class  ExecuteAsyncScriptCommand
 
class  ExecuteCommand
 
class  FindElementCommand
 
class  FindOneElementCommand
 
class  FindManyElementsCommand
 
class  HTML5LocationCommand
 
class  LocalStorageCommand
 
class  LocalStorageKeyCommand
 
class  LocalStorageSizeCommand
 
class  SessionStorageCommand
 
class  SessionStorageKeyCommand
 
class  SessionStorageSizeCommand
 
class  KeysCommand
 
class  LogCommand
 
class  LogTypesCommand
 
class  MoveAndClickCommand
 
class  HoverCommand
 
class  AdvancedMouseCommand
 
class  MoveToCommand
 
class  ClickCommand
 
class  ButtonDownCommand
 
class  ButtonUpCommand
 
class  DoubleClickCommand
 
class  WheelCommand
 
class  ForwardCommand
 
class  BackCommand
 
class  RefreshCommand
 
class  StatusCommand
 
class  GlobalLogCommand
 
class  OrientationCommand
 
class  Response
 
class  ScreenshotCommand
 
class  SessionWithID
 
class  Sessions
 
class  SetTimeoutCommand
 
class  SetAsyncScriptTimeoutCommand
 
class  ImplicitWaitCommand
 
class  SourceCommand
 
class  WindowHandleCommand
 
class  WindowHandlesCommand
 
class  WindowCommand
 
class  SwitchFrameCommand
 
class  ActiveElementCommand
 
class  TitleCommand
 
class  TouchCommand
 
class  TouchClickCommand
 
class  TouchDownCommand
 
class  TouchUpCommand
 
class  TouchDoubleClickCommand
 
class  TouchMoveCommand
 
class  TouchScrollCommand
 
class  TouchLongClickCommand
 
class  TouchFlickCommand
 
class  TouchPinchRotateCommand
 
class  TouchPinchZoomCommand
 
class  URLCommand
 
class  VisualizerSourceCommand
 
class  VisualizerShowPointCommand
 
class  WebDriverCommand
 
class  ViewCommand
 
class  WindowSizeCommand
 
class  WindowPositionCommand
 
class  WindowMaximizeCommand
 
class  XDRPCCommand
 
class  QDeclarativeItemViewHandle
 
class  GraphicsWebViewEnumeratorImpl
 
class  GraphicsWebViewCmdExecutorCreator
 
class  GraphicsWebViewCmdExecutor
 
class  GraphicsWebViewHandle
 
class  QSessionLifeCycleActions
 
class  QViewCmdExecutor
 
class  QTaskRunner
 
class  QViewRunner
 
class  QQmlViewCreator
 
class  QmlViewEnumeratorImpl
 
class  QQmlViewCmdExecutorCreator
 
class  QQmlViewCmdExecutor
 
class  QmlWebViewEnumeratorImpl
 
class  QmlWebViewCmdExecutorCreator
 
class  QmlWebViewCmdExecutor
 
class  Quick2ViewCreator
 
class  Quick2ViewEnumeratorImpl
 
class  Quick2ViewCmdExecutorCreator
 
class  Quick2ViewCmdExecutor
 
class  QWindowViewCmdExecutor
 
class  QWindowViewHandle
 
class  QWebViewCreator
 
class  WebViewEnumeratorImpl
 
class  QWebViewCmdExecutorCreator
 
class  QWebViewCmdExecutor
 
class  QElementHandle
 
class  QWidgetViewCreator
 
class  WidgetViewEnumeratorImpl
 
class  QWidgetViewCmdExecutorCreator
 
class  QWidgetViewCmdExecutor
 
class  QViewHandle
 
class  FramePath
 
class  VersionInfo
 
class  AccessValidator
 
class  Point
 
class  Size
 
class  Rect
 
struct  Capabilities
 
class  CapabilitiesParser
 
class  ElementHandle
 
class  ElementId
 
struct  LocatorType
 
class  Error
 
class  LogType
 
class  LogHandler
 
class  FileLog
 
class  StdOutLog
 
class  InMemoryLog
 
class  PerfLog
 
class  Logger
 
class  GlobalLogger
 
class  CommandRoutes
 
class  AbstractCommandCreator
 
class  CommandCreator
 
class  RouteTable
 
class  DefaultRouteTable
 
class  Server
 
class  Session
 
class  SessionLifeCycleActions
 
class  SessionManager
 
class  Switches
 
class  ValueParser
 
class  DirectValueParser
 
class  AbstractViewEnumeratorImpl
 
class  ViewEnumerator
 
class  ViewCmdExecutor
 
class  ViewCmdExecutorCreator
 
class  ViewCmdExecutorFactory
 
class  ViewCreator
 
class  ViewFactory
 
class  ViewHandle
 
class  ViewId
 
class  ViewRunner
 
class  URLTransitionAction
 
class  URLTransitionAction_CloseOldView
 
class  ViewTransitionManager
 

Typedefs

typedef scoped_refptr
< AbstractCommandCreator
CommandCreatorPtr
 
typedef
AbstractViewEnumeratorImpl
ViewEnumeratorImplPtr
 
typedef void *(* CreateViewMethod )(void)
 
typedef unsigned long int ViewType
 
typedef scoped_refptr< ViewHandleViewHandlePtr
 
typedef scoped_ptr
< URLTransitionAction
URLTransitionActionPtr
 

Enumerations

enum  MouseButton { kLeftButton = 0, kMiddleButton = 1, kRightButton = 2 }
 
enum  StorageType { kLocalStorageType = 0, kSessionStorageType }
 
enum  PlayerState { Stopped = 0, Playing = 1, Paused = 2 }
 
enum  ErrorCode {
  kSuccess = 0, kNoSuchElement = 7, kNoSuchFrame = 8, kUnknownCommand = 9,
  kStaleElementReference = 10, kElementNotVisible = 11, kInvalidElementState = 12, kUnknownError = 13,
  kElementNotSelectable = 15, kJavaScriptError = 17, kXPathLookupError = 19, kTimeout = 21,
  kNoSuchWindow = 23, kInvalidCookieDomain = 24, kUnableToSetCookie = 25, kUnexpectedAlertOpen = 26,
  kNoAlertOpenError = 27, kScriptTimeout = 28, kMoveTargetOutOfBounds = 34, kCommandNotSupported = 50,
  kSeeOther = 303, kBadRequest = 400, kSessionNotFound = 404, kMethodNotAllowed = 405,
  kInternalServerError = 500
}
 
enum  LogLevel {
  kOffLogLevel = 1200, kSevereLogLevel = 1000, kWarningLogLevel = 900, kInfoLogLevel = 800,
  kFineLogLevel = 500, kAllLogLevel = -1000
}
 
enum  SkipParsing
 

Functions

LogLevel LogLevelFromString (const std::string &name)
 
std::string LogLevelToString (LogLevel level)
 
std::string GenerateRandomID ()
 
bool Base64Decode (const std::string &base64, std::string *bytes)
 
std::string JsonStringify (const base::Value *value)
 
std::string JsonStringifyForDisplay (const base::Value *value)
 
const char * GetJsonTypeName (base::Value::Type type)
 
ErrorFlattenStringArray (const ListValue *src, string16 *dest)
 
bool GetTwoIntsFromString (const std::string &src, int &first, int &second)
 
template<typename T >
DirectValueParser< T > * CreateDirectValueParser (T *t)
 
template<class C >
void * createView (void)
 

Variables

SkipParsingkSkipParsing
 

Typedef Documentation

typedef void*(* webdriver::CreateViewMethod)(void)
typedef scoped_refptr<ViewHandle> webdriver::ViewHandlePtr
typedef unsigned long int webdriver::ViewType

Enumeration Type Documentation

Error codes defined by the WebDriver wire protcol. If you add a code here, don't forget to add it to ErrorCodeToString().

Enumerator
kSuccess 
kNoSuchElement 
kNoSuchFrame 
kUnknownCommand 
kStaleElementReference 
kElementNotVisible 
kInvalidElementState 
kUnknownError 
kElementNotSelectable 
kJavaScriptError 
kXPathLookupError 
kTimeout 
kNoSuchWindow 
kInvalidCookieDomain 
kUnableToSetCookie 
kUnexpectedAlertOpen 
kNoAlertOpenError 
kScriptTimeout 
kMoveTargetOutOfBounds 
kCommandNotSupported 
kSeeOther 
kBadRequest 
kSessionNotFound 
kMethodNotAllowed 
kInternalServerError 

WebDriver logging levels.

Enumerator
kOffLogLevel 
kSevereLogLevel 
kWarningLogLevel 
kInfoLogLevel 
kFineLogLevel 
kAllLogLevel 

button codes

Enumerator
kLeftButton 
kMiddleButton 
kRightButton 

possible states

Enumerator
Stopped 
Playing 
Paused 

Define a special type and constant that allows users to skip parsing a value. Useful when wanting to skip parsing for one value out of many in a list.

storage types

Enumerator
kLocalStorageType 
kSessionStorageType 

Function Documentation

bool webdriver::Base64Decode ( const std::string &  base64,
std::string *  bytes 
)

Decodes the given base64-encoded string, after removing any newlines, which are required in some base64 standards. Returns true on success.

template<typename T >
DirectValueParser<T>* webdriver::CreateDirectValueParser ( T *  t)

Convenience function for creating a DirectValueParser.

template<class C >
void* webdriver::createView ( void  )
Error* webdriver::FlattenStringArray ( const ListValue *  src,
string16 *  dest 
)

Flattens the given list of strings into one.

std::string webdriver::GenerateRandomID ( )

Generates a random, 32-character hexidecimal ID.

const char* webdriver::GetJsonTypeName ( base::Value::Type  type)

Returns the string representation of the given type, for display purposes.

bool webdriver::GetTwoIntsFromString ( const std::string &  src,
int &  first,
int &  second 
)

Gives string, e.g.-"400, 600", split it, and assigns given number to first and second. Returns true on success.

std::string webdriver::JsonStringify ( const base::Value *  value)

Returns the equivalent JSON string for the given value.

std::string webdriver::JsonStringifyForDisplay ( const base::Value *  value)

Returns the JSON string for the given value, with the exception that long strings are shortened for easier display.

LogLevel webdriver::LogLevelFromString ( const std::string &  name)
std::string webdriver::LogLevelToString ( LogLevel  level)

Variable Documentation

SkipParsing* webdriver::kSkipParsing