Skip to content

Commit 5dd9678

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

1 file changed

Lines changed: 23 additions & 18 deletions

File tree

‎lib/WebDriver/Browser.php‎

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,28 @@
3030
finalclass 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-
constANDROID = 'android';
42-
constCHROME = 'chrome';
43-
constFIREFOX = 'firefox';
44-
constHTMLUNIT = 'htmlunit';
45-
constIE = 'internet explorer';
46-
constINTERNET_EXPLORER = 'internet explorer';
47-
constIPHONE = 'iPhone';
48-
constIPAD = 'iPad';
49-
constOPERA = 'opera';
50-
constPHANTOMJS = 'phantomjs';
51-
constSAFARI = 'safari';
35+
constCHROME = 'chrome';
36+
constEDGE = 'MicrosoftEdge';
37+
constFIREFOX = 'firefox';
38+
constHTMLUNIT = 'htmlunit';
39+
constIE = 'internet explorer';
40+
constOPERA = 'opera';
41+
constSAFARI = 'safari';
42+
constSAFARI_TECH_PREVIEW = 'Safari Technology Preview';
43+
44+
/**
45+
* @see https://github.com/SeleniumHQ/selenium/blob/trunk/javascript/webdriver/capabilities.js
46+
* @deprecated
47+
*/
48+
constANDROID = 'android';
49+
constEDGEHTML = 'EdgeHTML';
50+
constINTERNET_EXPLORER = 'internet explorer';
51+
constIPAD = 'iPad';
52+
constIPHONE = 'iPhone';
53+
constMSEDGE = 'MicrosoftEdge';
54+
constOPERA_BLINK = 'operablink';
55+
constPHANTOM_JS = 'phantomjs';
56+
constPHANTOMJS = 'phantomjs';
5257
}

0 commit comments

Comments
 (0)