annotate vendor/instaclick/php-webdriver/lib/WebDriver/Capability.php @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
rev   line source
Chris@0 1 <?php
Chris@0 2 /**
Chris@0 3 * Copyright 2011-2017 Fabrizio Branca. All Rights Reserved.
Chris@0 4 *
Chris@0 5 * Licensed under the Apache License, Version 2.0 (the "License");
Chris@0 6 * you may not use this file except in compliance with the License.
Chris@0 7 * You may obtain a copy of the License at
Chris@0 8 *
Chris@0 9 * http://www.apache.org/licenses/LICENSE-2.0
Chris@0 10 *
Chris@0 11 * Unless required by applicable law or agreed to in writing, software
Chris@0 12 * distributed under the License is distributed on an "AS IS" BASIS,
Chris@0 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Chris@0 14 * See the License for the specific language governing permissions and
Chris@0 15 * limitations under the License.
Chris@0 16 *
Chris@0 17 * @package WebDriver
Chris@0 18 *
Chris@0 19 * @author Fabrizio Branca <mail@fabrizio-branca.de>
Chris@0 20 * @author Anthon Pang <apang@softwaredevelopment.ca>
Chris@0 21 */
Chris@0 22
Chris@0 23 namespace WebDriver;
Chris@0 24
Chris@0 25 /**
Chris@0 26 * WebDriver\Capability class
Chris@0 27 *
Chris@0 28 * @package WebDriver
Chris@0 29 */
Chris@0 30 class Capability
Chris@0 31 {
Chris@0 32 /**
Chris@0 33 * Desired capabilities
Chris@0 34 *
Chris@0 35 * @see http://code.google.com/p/selenium/source/browse/trunk/java/client/src/org/openqa/selenium/remote/CapabilityType.java
Chris@0 36 * @see http://code.google.com/p/selenium/wiki/JsonWireProtocol#Capabilities_JSON_Object
Chris@0 37 */
Chris@0 38 const BROWSER_NAME = 'browserName';
Chris@0 39 const VERSION = 'version';
Chris@0 40 const PLATFORM = 'platform';
Chris@0 41 const JAVASCRIPT_ENABLED = 'javascriptEnabled';
Chris@0 42 const TAKES_SCREENSHOT = 'takesScreenshot';
Chris@0 43 const HANDLES_ALERTS = 'handlesAlerts';
Chris@0 44 const DATABASE_ENABLED = 'databaseEnabled';
Chris@0 45 const LOCATION_CONTEXT_ENABLED = 'locationContextEnabled';
Chris@0 46 const APPLICATION_CACHE_ENABLED = 'applicationCacheEnabled';
Chris@0 47 const BROWSER_CONNECTION_ENABLED = 'browserConnectionEnabled';
Chris@0 48 const CSS_SELECTORS_ENABLED = 'cssSelectorsEnabled';
Chris@0 49 const WEB_STORAGE_ENABLED = 'webStorageEnabled';
Chris@0 50 const ROTATABLE = 'rotatable';
Chris@0 51 const ACCEPT_SSL_CERTS = 'acceptSslCerts';
Chris@0 52 const NATIVE_EVENTS = 'nativeEvents';
Chris@0 53 const PROXY = 'proxy';
Chris@0 54 const UNEXPECTED_ALERT_BEHAVIOUR = 'unexpectedAlertBehaviour';
Chris@0 55 const ELEMENT_SCROLL_BEHAVIOR = 'elementScrollBehavior';
Chris@0 56
Chris@0 57 /**
Chris@0 58 * Proxy types
Chris@0 59 *
Chris@0 60 * @see http://code.google.com/p/selenium/wiki/JsonWireProtocol#Proxy_JSON_Object
Chris@0 61 */
Chris@0 62 const DIRECT = 'direct';
Chris@0 63 const MANUAL = 'manual';
Chris@0 64 const PAC = 'pac';
Chris@0 65 const AUTODETECT = 'autodetect';
Chris@0 66 const SYSTEM = 'system';
Chris@0 67 }