X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Finstaclick%2Fphp-webdriver%2Flib%2FWebDriver%2FCapability.php;fp=vendor%2Finstaclick%2Fphp-webdriver%2Flib%2FWebDriver%2FCapability.php;h=50d66643ebed6c70fed8f664e488bb7c9618ddc7;hp=0000000000000000000000000000000000000000;hb=1270d9129ce8f27c9b28b10518e32132c58e0aca;hpb=c27c0f0cdaa3f354b1fe54a56ae7e854be6e3f68 diff --git a/vendor/instaclick/php-webdriver/lib/WebDriver/Capability.php b/vendor/instaclick/php-webdriver/lib/WebDriver/Capability.php new file mode 100644 index 000000000..50d66643e --- /dev/null +++ b/vendor/instaclick/php-webdriver/lib/WebDriver/Capability.php @@ -0,0 +1,67 @@ + + * @author Anthon Pang + */ + +namespace WebDriver; + +/** + * WebDriver\Capability class + * + * @package WebDriver + */ +class Capability +{ + /** + * Desired capabilities + * + * @see http://code.google.com/p/selenium/source/browse/trunk/java/client/src/org/openqa/selenium/remote/CapabilityType.java + * @see http://code.google.com/p/selenium/wiki/JsonWireProtocol#Capabilities_JSON_Object + */ + const BROWSER_NAME = 'browserName'; + const VERSION = 'version'; + const PLATFORM = 'platform'; + const JAVASCRIPT_ENABLED = 'javascriptEnabled'; + const TAKES_SCREENSHOT = 'takesScreenshot'; + const HANDLES_ALERTS = 'handlesAlerts'; + const DATABASE_ENABLED = 'databaseEnabled'; + const LOCATION_CONTEXT_ENABLED = 'locationContextEnabled'; + const APPLICATION_CACHE_ENABLED = 'applicationCacheEnabled'; + const BROWSER_CONNECTION_ENABLED = 'browserConnectionEnabled'; + const CSS_SELECTORS_ENABLED = 'cssSelectorsEnabled'; + const WEB_STORAGE_ENABLED = 'webStorageEnabled'; + const ROTATABLE = 'rotatable'; + const ACCEPT_SSL_CERTS = 'acceptSslCerts'; + const NATIVE_EVENTS = 'nativeEvents'; + const PROXY = 'proxy'; + const UNEXPECTED_ALERT_BEHAVIOUR = 'unexpectedAlertBehaviour'; + const ELEMENT_SCROLL_BEHAVIOR = 'elementScrollBehavior'; + + /** + * Proxy types + * + * @see http://code.google.com/p/selenium/wiki/JsonWireProtocol#Proxy_JSON_Object + */ + const DIRECT = 'direct'; + const MANUAL = 'manual'; + const PAC = 'pac'; + const AUTODETECT = 'autodetect'; + const SYSTEM = 'system'; +}