Chris@14
|
1 <?php
|
Chris@14
|
2 /**
|
Chris@14
|
3 * Copyright 2011-2017 Fabrizio Branca. All Rights Reserved.
|
Chris@14
|
4 *
|
Chris@14
|
5 * Licensed under the Apache License, Version 2.0 (the "License");
|
Chris@14
|
6 * you may not use this file except in compliance with the License.
|
Chris@14
|
7 * You may obtain a copy of the License at
|
Chris@14
|
8 *
|
Chris@14
|
9 * http://www.apache.org/licenses/LICENSE-2.0
|
Chris@14
|
10 *
|
Chris@14
|
11 * Unless required by applicable law or agreed to in writing, software
|
Chris@14
|
12 * distributed under the License is distributed on an "AS IS" BASIS,
|
Chris@14
|
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
Chris@14
|
14 * See the License for the specific language governing permissions and
|
Chris@14
|
15 * limitations under the License.
|
Chris@14
|
16 *
|
Chris@14
|
17 * @package WebDriver
|
Chris@14
|
18 *
|
Chris@14
|
19 * @author Fabrizio Branca <mail@fabrizio-branca.de>
|
Chris@14
|
20 * @author Anthon Pang <apang@softwaredevelopment.ca>
|
Chris@14
|
21 */
|
Chris@14
|
22
|
Chris@14
|
23 namespace WebDriver;
|
Chris@14
|
24
|
Chris@14
|
25 /**
|
Chris@14
|
26 * WebDriver\Browser class
|
Chris@14
|
27 *
|
Chris@14
|
28 * @package WebDriver
|
Chris@14
|
29 */
|
Chris@14
|
30 final class Browser
|
Chris@14
|
31 {
|
Chris@14
|
32 /**
|
Chris@14
|
33 * Check browser names used in static functions in the selenium source:
|
Chris@14
|
34 * @see http://code.google.com/p/selenium/source/browse/java/client/src/org/openqa/selenium/remote/DesiredCapabilities.java
|
Chris@14
|
35 *
|
Chris@14
|
36 * Note: Capability array takes these browserNames and not the "browserTypes"
|
Chris@14
|
37 *
|
Chris@14
|
38 * Also check
|
Chris@14
|
39 * @see http://code.google.com/p/selenium/wiki/JsonWireProtocol#Capabilities_JSON_Object
|
Chris@14
|
40 */
|
Chris@14
|
41 const ANDROID = 'android';
|
Chris@14
|
42 const CHROME = 'chrome';
|
Chris@14
|
43 const FIREFOX = 'firefox';
|
Chris@14
|
44 const HTMLUNIT = 'htmlunit';
|
Chris@14
|
45 const IE = 'internet explorer';
|
Chris@14
|
46 const INTERNET_EXPLORER = 'internet explorer';
|
Chris@14
|
47 const IPHONE = 'iPhone';
|
Chris@14
|
48 const IPAD = 'iPad';
|
Chris@14
|
49 const OPERA = 'opera';
|
Chris@14
|
50 const PHANTOMJS = 'phantomjs';
|
Chris@14
|
51 const SAFARI = 'safari';
|
Chris@14
|
52 }
|