All Downloads are FREE. Search and download functionalities are using the official Maven repository.

drivers.js.third_party.webdriver-atoms.execute_script.js Maven / Gradle / Ivy

function(){return function(){var g=this;
function h(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==
b&&"undefined"==typeof a.call)return"object";return b}function aa(a){var b=h(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ba(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var ca=Date.now||function(){return+new Date};var da=window;function m(a,b){this.code=a;this.state=n[a]||ea;this.message=b||"";var c=this.state.replace(/((?:^|\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\s\xa0]+/g,"")}),d=c.length-5;if(0>d||c.indexOf("Error",d)!=d)c+="Error";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||""}(function(){var a=Error;function b(){}b.prototype=a.prototype;m.d=a.prototype;m.prototype=new b})();
var ea="unknown error",n={15:"element not selectable",11:"element not visible",31:"ime engine activation failed",30:"ime not available",24:"invalid cookie domain",29:"invalid element coordinates",12:"invalid element state",32:"invalid selector",51:"invalid selector",52:"invalid selector",17:"javascript error",405:"unsupported operation",34:"move target out of bounds",27:"no such alert",7:"no such element",8:"no such frame",23:"no such window",28:"script timeout",33:"session not created",10:"stale element reference",
0:"success",21:"timeout",25:"unable to set cookie",26:"unexpected alert open"};n[13]=ea;n[9]="unknown command";m.prototype.toString=function(){return this.name+": "+this.message};function p(a,b){for(var c=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=Math.max(d.length,e.length),q=0;0==c&&q(0==
l[1].length?0:parseInt(l[1],10))?1:0)||((0==k[2].length)<(0==l[2].length)?-1:(0==k[2].length)>(0==l[2].length)?1:0)||(k[2]l[2]?1:0)}while(0==c)}return c};var r,s,t,u;function w(){return g.navigator?g.navigator.userAgent:null}u=t=s=r=!1;var x;if(x=w()){var fa=g.navigator;r=0==x.indexOf("Opera");s=!r&&-1!=x.indexOf("MSIE");t=!r&&-1!=x.indexOf("WebKit");u=!r&&!t&&"Gecko"==fa.product}var y=r,z=s,A=u,ga=t;function ha(){var a=g.document;return a?a.documentMode:void 0}var B;
a:{var C="",D;if(y&&g.opera)var E=g.opera.version,C="function"==typeof E?E():E;else if(A?D=/rv\:([^\);]+)(\)|;)/:z?D=/MSIE\s+([^\);]+)(\)|;)/:ga&&(D=/WebKit\/(\S+)/),D)var ia=D.exec(w()),C=ia?ia[1]:"";if(z){var ja=ha();if(ja>parseFloat(C)){B=String(ja);break a}}B=C}var ka={};function F(a){return ka[a]||(ka[a]=0<=p(B,a))}var la=g.document,G=la&&z?ha()||("CSS1Compat"==la.compatMode?parseInt(B,10):5):void 0;var H,I,J,K,L,M,N;N=M=L=K=J=I=H=!1;var O=w();O&&(-1!=O.indexOf("Firefox")?H=!0:-1!=O.indexOf("Camino")?I=!0:-1!=O.indexOf("iPhone")||-1!=O.indexOf("iPod")?J=!0:-1!=O.indexOf("iPad")?K=!0:-1!=O.indexOf("Android")?L=!0:-1!=O.indexOf("Chrome")?M=!0:-1!=O.indexOf("Safari")&&(N=!0));var ma=H,na=I,oa=J,pa=K,P=L,qa=M,ra=N;function Q(a){return(a=a.exec(w()))?a[1]:""}var sa=function(){if(ma)return Q(/Firefox\/([0-9.]+)/);if(z||y)return B;if(qa)return Q(/Chrome\/([0-9.]+)/);if(ra)return Q(/Version\/([0-9.]+)/);if(oa||pa){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(w());if(a)return a[1]+"."+a[2]}else{if(P)return(a=Q(/Android\s+([0-9.]+)/))?a:Q(/Version\/([0-9.]+)/);if(na)return Q(/Camino\/([0-9.]+)/)}return""}();var R,ta;function S(a){T?ta(a):P?p(ua,a):p(sa,a)}var T=function(){if(!A)return!1;var a=g.Components;if(!a)return!1;try{if(!a.classes)return!1}catch(b){return!1}var c=a.classes,a=a.interfaces,d=c["@mozilla.org/xpcom/version-comparator;1"].getService(a.nsIVersionComparator),c=c["@mozilla.org/xre/app-info;1"].getService(a.nsIXULAppInfo),e=c.platformVersion,f=c.version;R=function(a){return 0<=d.c(e,""+a)};ta=function(a){d.c(f,""+a)};return!0}(),U;
if(P){var va=/Android\s+([0-9\.]+)/.exec(w());U=va?va[1]:"0"}else U="0";var ua=U;P&&S(2.3);P&&S(4);ra&&S(6);function wa(){this.a=void 0}
function V(a,b,c){switch(typeof b){case "string":Aa(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(null==b){c.push("null");break}if("array"==h(b)){var d=b.length;c.push("[");for(var e="",f=0;fb?e+="000":256>b?e+="00":4096>b&&(e+="0");return W[a]=e+b.toString(16)}),'"')};ga||y||A&&(T?R(3.5):z?0<=p(G,3.5):F(3.5))||z&&(T?R(8):z?p(G,8):F(8));function Ca(a,b){for(var c=a.length,d=Array(c),e="string"==typeof a?a.split(""):a,f=0;f




© 2015 - 2025 Weber Informatics LLC | Privacy Policy