Skip to content

Commit

Permalink
Restore ability to select Opera in webdriverjs capabilities (accident…
Browse files Browse the repository at this point in the history
…ally

removed in revision af8b8ee).

WebDriverJS only supports Chromium-based Opera (26+), not Presto
  • Loading branch information
jleyba committed Mar 1, 2015
1 parent 17872d6 commit 56d88d7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions javascript/webdriver/capabilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ webdriver.Browser = {
INTERNET_EXPLORER: 'internet explorer',
IPAD: 'iPad',
IPHONE: 'iPhone',
OPERA: 'opera',
PHANTOM_JS: 'phantomjs',
SAFARI: 'safari',
HTMLUNIT: 'htmlunit'
Expand Down Expand Up @@ -236,6 +237,14 @@ webdriver.Capabilities.iphone = function() {
};


/**
* @return {!webdriver.Capabilities} A basic set of capabilities for Opera.
*/
webdriver.Capabilities.opera = function() {
return new webdriver.Capabilities().
set(webdriver.Capability.BROWSER_NAME, webdriver.Browser.OPERA);
};

/**
* @return {!webdriver.Capabilities} A basic set of capabilities for
* PhantomJS.
Expand Down

0 comments on commit 56d88d7

Please sign in to comment.