Lines Matching refs:rect
6 function getInViewCenterPoint(rect) {
7 var left = Math.max(0, rect.left);
8 var right = Math.min(window.innerWidth, rect.right);
9 var top = Math.max(0, rect.top);
10 var bottom = Math.min(window.innerHeight, rect.bottom);
162 var rect = element.getClientRects()[0];
163 var centerPoint = getInViewCenterPoint(rect);
276 * Restore the window from minimized/maximized state to a given rect.
279 * <https://www.w3.org/TR/webdriver/#set-window-rect>`_
282 * @param {Object} rect - A {@link
288 * @returns {Promise} fulfilled after the window is restored to the given rect.
290 set_window_rect: function(rect, context=null) {
291 return window.test_driver_internal.set_window_rect(rect, context);
680 set_window_rect: function(rect, context=null) {