We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SeleniumHQ
Learn more about funding links in repositories.
Report abuse
1 parent 17872d6 commit 56d88d7Copy full SHA for 56d88d7
javascript/webdriver/capabilities.js
@@ -38,6 +38,7 @@ webdriver.Browser = {
38
INTERNET_EXPLORER: 'internet explorer',
39
IPAD: 'iPad',
40
IPHONE: 'iPhone',
41
+ OPERA: 'opera',
42
PHANTOM_JS: 'phantomjs',
43
SAFARI: 'safari',
44
HTMLUNIT: 'htmlunit'
@@ -236,6 +237,14 @@ webdriver.Capabilities.iphone = function() {
236
237
};
238
239
240
+/**
241
+ * @return {!webdriver.Capabilities} A basic set of capabilities for Opera.
242
+ */
243
+webdriver.Capabilities.opera = function() {
244
+ return new webdriver.Capabilities().
245
+ set(webdriver.Capability.BROWSER_NAME, webdriver.Browser.OPERA);
246
+};
247
+
248
/**
249
* @return {!webdriver.Capabilities} A basic set of capabilities for
250
* PhantomJS.
0 commit comments