3 * Copyright 2011-2017 Fabrizio Branca. All Rights Reserved.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 * @author Fabrizio Branca <mail@fabrizio-branca.de>
20 * @author Anthon Pang <apang@softwaredevelopment.ca>
26 * WebDriver\Capability class
33 * Desired capabilities
35 * @see http://code.google.com/p/selenium/source/browse/trunk/java/client/src/org/openqa/selenium/remote/CapabilityType.java
36 * @see http://code.google.com/p/selenium/wiki/JsonWireProtocol#Capabilities_JSON_Object
38 const BROWSER_NAME = 'browserName';
39 const VERSION = 'version';
40 const PLATFORM = 'platform';
41 const JAVASCRIPT_ENABLED = 'javascriptEnabled';
42 const TAKES_SCREENSHOT = 'takesScreenshot';
43 const HANDLES_ALERTS = 'handlesAlerts';
44 const DATABASE_ENABLED = 'databaseEnabled';
45 const LOCATION_CONTEXT_ENABLED = 'locationContextEnabled';
46 const APPLICATION_CACHE_ENABLED = 'applicationCacheEnabled';
47 const BROWSER_CONNECTION_ENABLED = 'browserConnectionEnabled';
48 const CSS_SELECTORS_ENABLED = 'cssSelectorsEnabled';
49 const WEB_STORAGE_ENABLED = 'webStorageEnabled';
50 const ROTATABLE = 'rotatable';
51 const ACCEPT_SSL_CERTS = 'acceptSslCerts';
52 const NATIVE_EVENTS = 'nativeEvents';
53 const PROXY = 'proxy';
54 const UNEXPECTED_ALERT_BEHAVIOUR = 'unexpectedAlertBehaviour';
55 const ELEMENT_SCROLL_BEHAVIOR = 'elementScrollBehavior';
60 * @see http://code.google.com/p/selenium/wiki/JsonWireProtocol#Proxy_JSON_Object
62 const DIRECT = 'direct';
63 const MANUAL = 'manual';
65 const AUTODETECT = 'autodetect';
66 const SYSTEM = 'system';