var Browser = require('../interfaces/browser.js');
var objectAssign = require('object-assign');

function WebDriverIOAdaptor(webdriverioInstance) {
  this._webdriverio = webdriverioInstance;
}

WebDriverIOAdaptor.prototype = objectAssign({}, Browser, {
  takeScreenshot: function(callback) {
    this._webdriverio.saveScreenshot(callback);
  }
});

module.exports = WebDriverIOAdaptor;

@@ -333,16 +333,639 @@
 lback);%0A
+  %7D,%0A%0A  getBoundingClientRect: function(selector, callback) %7B%0A    this._webdriverio.getElementSize(selector, function(error, size) %7B%0A      if (error) %7B%0A        return callback(error);%0A      %7D%0A%0A      this._webdriverio.getLocation(selector, function(error, location) %7B%0A        if (error) %7B%0A          return callback(error);%0A        %7D%0A%0A        var rect = %7B%7D;%0A%0A        rect.width = size.width;%0A        rect.height = size.height;%0A        rect.top = location.y;%0A        rect.left = location.x;%0A        rect.bottom = rect.y + rect.height;%0A        rect.right = rect.x + rect.width;%0A%0A        callback(null, rect);%0A      %7D);%0A    %7D);%0A
   %7D%0A%7D);%0A

implement webdriverio adaptor getBoundingClientRect