
atoms.getInteractableSize_ios.js Maven / Gradle / Ivy
The newest version!
function(){return function(){var f=!0,g=!1,h=this;function k(a,b){function c(){}c.prototype=b.prototype;a.b=b.prototype;a.prototype=new c};var l=window;function m(a,b){this.code=a;this.message=b||"";this.name=n[a]||n[13];var c=Error(this.message);c.name=this.name;this.stack=c.stack||""}k(m,Error);
var n={7:"NoSuchElementError",8:"NoSuchFrameError",9:"UnknownCommandError",10:"StaleElementReferenceError",11:"ElementNotVisibleError",12:"InvalidElementStateError",13:"UnknownError",15:"ElementNotSelectableError",19:"XPathLookupError",23:"NoSuchWindowError",24:"InvalidCookieDomainError",25:"UnableToSetCookieError",26:"ModalDialogOpenedError",27:"NoModalDialogOpenError",28:"ScriptTimeoutError",32:"InvalidSelectorError",35:"SqlDatabaseError",34:"MoveTargetOutOfBoundsError"};
m.prototype.toString=function(){return this.name+": "+this.message};function p(a,b){for(var c=1;c(0==e[1].length?
0:parseInt(e[1],10))?1:0)||((0==d[2].length)<(0==e[2].length)?-1:(0==d[2].length)>(0==e[2].length)?1:0)||(d[2]e[2]?1:0)}while(0==c)}return c};function t(){return h.navigator?h.navigator.userAgent:null}var u,v="",w=/WebKit\/(\S+)/.exec(t());u=v=w?w[1]:"";var x={};var y,z,A,B,C,D,E;E=D=C=B=A=z=y=g;var F=t();F&&(-1!=F.indexOf("Firefox")?y=f:-1!=F.indexOf("Camino")?z=f:-1!=F.indexOf("iPhone")||-1!=F.indexOf("iPod")?A=f:-1!=F.indexOf("iPad")?B=f:-1!=F.indexOf("Android")?C=f:-1!=F.indexOf("Chrome")?D=f:-1!=F.indexOf("Safari")&&(E=f));var G=y,I=z,J=A,aa=B,K=C,ba=D,ca=E;function L(a){return(a=a.exec(t()))?a[1]:""}var da=function(){if(G)return L(/Firefox\/([0-9.]+)/);if(ba)return L(/Chrome\/([0-9.]+)/);if(ca)return L(/Version\/([0-9.]+)/);if(J||aa){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(t());if(a)return a[1]+"."+a[2]}else{if(K)return(a=L(/Android\s+([0-9.]+)/))?a:L(/Version\/([0-9.]+)/);if(I)return L(/Camino\/([0-9.]+)/)}return""}();var M;if(K){var N=/Android\s+([0-9\.]+)/.exec(t());M=N?N[1]:"0"}else M="0";var ea=M;K&&(K?s(ea,2.3):s(da,2.3));function O(a){Error.captureStackTrace?Error.captureStackTrace(this,O):this.stack=Error().stack||"";a&&(this.message=String(a))}k(O,Error);O.prototype.name="CustomError";function P(a,b){b.unshift(a);O.call(this,p.apply(null,b));b.shift();this.a=a}k(P,O);P.prototype.name="AssertionError";function Q(a,b){this.width=a;this.height=b}Q.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};x["533"]||(x["533"]=0<=s(u,"533"));function R(a){var b=(a||l).document;a=b.documentElement;var c=b.body;if(!c)throw new m(13,"No BODY element present");b=[a.clientHeight,a.scrollHeight,a.offsetHeight,c.scrollHeight,c.offsetHeight];a=Math.max.apply(null,[a.clientWidth,a.scrollWidth,a.offsetWidth,c.scrollWidth,c.offsetWidth]);b=Math.max.apply(null,b);return new Q(a,b)}var X=["_"],Y=h;!(X[0]in Y)&&Y.execScript&&Y.execScript("var "+X[0]);for(var Z;X.length&&(Z=X.shift());){var $;if($=!X.length)$=void 0!==R;$?Y[Z]=R:Y=Y[Z]?Y[Z]:Y[Z]={}};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?window.document:null}, arguments);}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy