Skip to content

Commit 5dd9678

Browse files
committed
clean-up Browser consts
1 parent 7b8bf34 commit 5dd9678

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

lib/WebDriver/Browser.php

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,28 @@
3030
final class Browser
3131
{
3232
/**
33-
* Check browser names used in static functions in the selenium source:
34-
* @see http://code.google.com/p/selenium/source/browse/java/client/src/org/openqa/selenium/remote/DesiredCapabilities.java
35-
*
36-
* Note: Capability array takes these browserNames and not the "browserTypes"
37-
*
38-
* Also check
39-
* @see http://code.google.com/p/selenium/wiki/JsonWireProtocol#Capabilities_JSON_Object
33+
* @see https://github.com/SeleniumHQ/selenium/blob/trunk/java/src/org/openqa/selenium/remote/Browser.java
4034
*/
41-
const ANDROID = 'android';
42-
const CHROME = 'chrome';
43-
const FIREFOX = 'firefox';
44-
const HTMLUNIT = 'htmlunit';
45-
const IE = 'internet explorer';
46-
const INTERNET_EXPLORER = 'internet explorer';
47-
const IPHONE = 'iPhone';
48-
const IPAD = 'iPad';
49-
const OPERA = 'opera';
50-
const PHANTOMJS = 'phantomjs';
51-
const SAFARI = 'safari';
35+
const CHROME = 'chrome';
36+
const EDGE = 'MicrosoftEdge';
37+
const FIREFOX = 'firefox';
38+
const HTMLUNIT = 'htmlunit';
39+
const IE = 'internet explorer';
40+
const OPERA = 'opera';
41+
const SAFARI = 'safari';
42+
const SAFARI_TECH_PREVIEW = 'Safari Technology Preview';
43+
44+
/**
45+
* @see https://github.com/SeleniumHQ/selenium/blob/trunk/javascript/webdriver/capabilities.js
46+
* @deprecated
47+
*/
48+
const ANDROID = 'android';
49+
const EDGEHTML = 'EdgeHTML';
50+
const INTERNET_EXPLORER = 'internet explorer';
51+
const IPAD = 'iPad';
52+
const IPHONE = 'iPhone';
53+
const MSEDGE = 'MicrosoftEdge';
54+
const OPERA_BLINK = 'operablink';
55+
const PHANTOM_JS = 'phantomjs';
56+
const PHANTOMJS = 'phantomjs';
5257
}

0 commit comments

Comments
 (0)