
drivers.js.third_party.webdriver-atoms.is_enabled.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of phoenix_webdriver Show documentation
Show all versions of phoenix_webdriver Show documentation
update:检查点bug修复,增加js执行的驱动,commandExecutor方法bug修复,驱动更新支持最新Firefox47/chrome51/IE10/IE11/IE Edge
function(){return function(){function f(a){return function(){return a}}var k=this;
function l(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=l(a);return"array"==b||"object"==b&&"number"==typeof a.length}function m(a){return"string"==typeof a}function ba(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var ca=Date.now||function(){return+new Date};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("."),g=Math.max(d.length,e.length),h=0;0==c&&h(0==y[1].length?
0:parseInt(y[1],10))?1:0)||((0==x[2].length)<(0==y[2].length)?-1:(0==x[2].length)>(0==y[2].length)?1:0)||(x[2]y[2]?1:0)}while(0==c)}return c};var da=Array.prototype;function ea(a,b){if(m(a))return m(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;cc?null:m(a)?a.charAt(c):a[c]}function ka(a,b,c){return 2>=arguments.length?da.slice.call(a,b):da.slice.call(a,b,c)};function r(a,b){this.code=a;this.state=la[a]||ma;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;r.O=a.prototype;r.prototype=new b})();
var ma="unknown error",la={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"};la[13]=ma;la[9]="unknown command";r.prototype.toString=function(){return this.name+": "+this.message};var s,na,oa,pa,qa,ra;function t(){return k.navigator?k.navigator.userAgent:null}pa=oa=na=s=!1;var sa;if(sa=t()){var ta=k.navigator;s=0==sa.indexOf("Opera");na=!s&&-1!=sa.indexOf("MSIE");oa=!s&&-1!=sa.indexOf("WebKit");pa=!s&&!oa&&"Gecko"==ta.product}var u=s,w=na,z=pa,ua=oa,va,wa=k.navigator;va=wa&&wa.platform||"";qa=-1!=va.indexOf("Mac");ra=-1!=va.indexOf("Win");var A=-1!=va.indexOf("Linux");function xa(){var a=k.document;return a?a.documentMode:void 0}var B;
a:{var ya="",C;if(u&&k.opera)var za=k.opera.version,ya="function"==typeof za?za():za;else if(z?C=/rv\:([^\);]+)(\)|;)/:w?C=/MSIE\s+([^\);]+)(\)|;)/:ua&&(C=/WebKit\/(\S+)/),C)var Aa=C.exec(t()),ya=Aa?Aa[1]:"";if(w){var Ba=xa();if(Ba>parseFloat(ya)){B=String(Ba);break a}}B=ya}var Ca={};function Da(a){return Ca[a]||(Ca[a]=0<=p(B,a))}var Ea=k.document,D=Ea&&w?xa()||("CSS1Compat"==Ea.compatMode?parseInt(B,10):5):void 0;!z&&!w||w&&w&&9<=D||z&&Da("1.9.1");w&&Da("9");function Fa(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function Ga(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function Ha(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};function Ia(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;return a}function Ja(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}
function Ka(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(w&&!(w&&9<=D)){if(9==a.nodeType)return-1;if(9==b.nodeType)return 1}if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,g=b.parentNode;return e==g?La(a,b):!c&&Ja(e,b)?-1*Ma(a,b):!d&&Ja(g,a)?Ma(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:g.sourceIndex)}d=9==a.nodeType?a:a.ownerDocument||
a.document;c=d.createRange();c.selectNode(a);c.collapse(!0);d=d.createRange();d.selectNode(b);d.collapse(!0);return c.compareBoundaryPoints(k.Range.START_TO_END,d)}function Ma(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return La(d,a)}function La(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function Na(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};var Oa,Pa,Qa,Ra,Sa,Ta,Ua;Ua=Ta=Sa=Ra=Qa=Pa=Oa=!1;var E=t();E&&(-1!=E.indexOf("Firefox")?Oa=!0:-1!=E.indexOf("Camino")?Pa=!0:-1!=E.indexOf("iPhone")||-1!=E.indexOf("iPod")?Qa=!0:-1!=E.indexOf("iPad")?Ra=!0:-1!=E.indexOf("Android")?Sa=!0:-1!=E.indexOf("Chrome")?Ta=!0:-1!=E.indexOf("Safari")&&(Ua=!0));var Va=Oa,Wa=Pa,Xa=Qa,Ya=Ra,F=Sa,Za=Ta,$a=Ua;var G=w&&!(w&&9<=D),ab=w&&!(w&&8<=D);function bb(a,b,c,d,e){this.f=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;this.ownerElement=b;this.K=e;this.parentNode=b}function cb(a,b,c){var d=ab&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new bb(b,a,b.nodeName,d,c)};function H(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?"":b);if("string"!=typeof b)if(G&&"title"==a.nodeName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;for(var c=0,d=[],b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),G&&"title"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return""+b}
function I(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}ab&&"class"==b&&(b="className");return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function db(a,b,c,d,e){return(G?eb:fb).call(null,a,b,m(c)?c:null,m(d)?d:null,e||new J)}
function eb(a,b,c,d,e){if(8==a.h||c&&null===a.h){var g=b.all;if(!g)return e;a=gb(a);if("*"!=a&&(g=b.getElementsByTagName(a),!g))return e;if(c){for(var h=[],n=0;b=g[n++];)I(b,c,d)&&h.push(b);g=h}for(n=0;b=g[n++];)"*"==a&&"!"==b.tagName||e.add(b);return e}hb(a,b,c,d,e);return e}
function fb(a,b,c,d,e){b.getElementsByName&&d&&"name"==c&&!w?(b=b.getElementsByName(d),q(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),q(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),q(b,function(a){I(a,c,d)&&e.add(a)}));return e}
function ib(a,b,c,d,e){var g;if((8==a.h||c&&null===a.h)&&(g=b.childNodes)){var h=gb(a);if("*"!=h&&(g=fa(g,function(a){return a.tagName&&a.tagName.toLowerCase()==h}),!g))return e;c&&(g=fa(g,function(a){return I(a,c,d)}));q(g,function(a){"*"==h&&("!"==a.tagName||"*"==h&&1!=a.nodeType)||e.add(a)});return e}return jb(a,b,c,d,e)}function jb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)I(b,c,d)&&a.matches(b)&&e.add(b);return e}
function hb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)I(b,c,d)&&a.matches(b)&&e.add(b),hb(a,b,c,d,e)}function gb(a){return a.getName()};function J(){this.e=this.d=null;this.i=0}function kb(a){this.p=a;this.next=this.n=null}J.prototype.unshift=function(a){a=new kb(a);a.next=this.d;this.e?this.d.n=a:this.d=this.e=a;this.d=a;this.i++};J.prototype.add=function(a){a=new kb(a);a.n=this.e;this.d?this.e.next=a:this.d=this.e=a;this.e=a;this.i++};function lb(a){return(a=a.d)?a.p:null}function mb(a){return(a=lb(a))?H(a):""}function K(a,b){this.I=a;this.o=(this.q=b)?a.e:a.d;this.v=null}
K.prototype.next=function(){var a=this.o;if(null==a)return null;var b=this.v=a;this.o=this.q?a.n:a.next;return b.p};function L(a,b){var c=a.evaluate(b);return c instanceof J?+mb(c):+c}function M(a,b){var c=a.evaluate(b);return c instanceof J?mb(c):""+c}function N(a,b){var c=a.evaluate(b);return c instanceof J?!!c.i:!!c};function O(a,b,c,d,e){b=b.evaluate(d);c=c.evaluate(d);var g;if(b instanceof J&&c instanceof J){e=new K(b,!1);for(d=e.next();d;d=e.next())for(b=new K(c,!1),g=b.next();g;g=b.next())if(a(H(d),H(g)))return!0;return!1}if(b instanceof J||c instanceof J){b instanceof J?e=b:(e=c,c=b);e=new K(e,!1);b=typeof c;for(d=e.next();d;d=e.next()){switch(b){case "number":d=+H(d);break;case "boolean":d=!!H(d);break;case "string":d=H(d);break;default:throw Error("Illegal primitive type for comparison.");}if(a(d,c))return!0}return!1}return e?
"boolean"==typeof b||"boolean"==typeof c?a(!!b,!!c):"number"==typeof b||"number"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}function nb(a,b,c,d){this.w=a;this.M=b;this.t=c;this.u=d}nb.prototype.toString=function(){return this.w};var ob={};function Q(a,b,c,d){if(ob.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new nb(a,b,c,d);ob[a.toString()]=a}Q("div",6,1,function(a,b,c){return L(a,c)/L(b,c)});Q("mod",6,1,function(a,b,c){return L(a,c)%L(b,c)});
Q("*",6,1,function(a,b,c){return L(a,c)*L(b,c)});Q("+",5,1,function(a,b,c){return L(a,c)+L(b,c)});Q("-",5,1,function(a,b,c){return L(a,c)-L(b,c)});Q("<",4,2,function(a,b,c){return O(function(a,b){return a",4,2,function(a,b,c){return O(function(a,b){return a>b},a,b,c)});Q("<=",4,2,function(a,b,c){return O(function(a,b){return a<=b},a,b,c)});Q(">=",4,2,function(a,b,c){return O(function(a,b){return a>=b},a,b,c)});Q("=",3,2,function(a,b,c){return O(function(a,b){return a==b},a,b,c,!0)});
Q("!=",3,2,function(a,b,c){return O(function(a,b){return a!=b},a,b,c,!0)});Q("and",2,2,function(a,b,c){return N(a,c)&&N(b,c)});Q("or",1,2,function(a,b,c){return N(a,c)||N(b,c)});function pb(a,b,c,d,e,g,h,n,v){this.l=a;this.t=b;this.H=c;this.G=d;this.F=e;this.u=g;this.D=h;this.C=void 0!==n?n:h;this.J=!!v}pb.prototype.toString=function(){return this.l};var qb={};function R(a,b,c,d,e,g,h,n){if(qb.hasOwnProperty(a))throw Error("Function already created: "+a+".");qb[a]=new pb(a,b,c,d,!1,e,g,h,n)}R("boolean",2,!1,!1,function(a,b){return N(b,a)},1);R("ceiling",1,!1,!1,function(a,b){return Math.ceil(L(b,a))},1);
R("concat",3,!1,!1,function(a,b){var c=ka(arguments,1);return ha(c,function(b,c){return b+M(c,a)})},2,null);R("contains",2,!1,!1,function(a,b,c){b=M(b,a);a=M(c,a);return-1!=b.indexOf(a)},2);R("count",1,!1,!1,function(a,b){return b.evaluate(a).i},1,1,!0);R("false",2,!1,!1,f(!1),0);R("floor",1,!1,!1,function(a,b){return Math.floor(L(b,a))},1);
R("id",4,!1,!1,function(a,b){function c(a){if(G){var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return ia(b,function(b){return a==b.id})}return null}return e.getElementById(a)}var d=a.f,e=9==d.nodeType?d:d.ownerDocument,d=M(b,a).split(/\s+/),g=[];q(d,function(a){a=c(a);!a||0<=ea(g,a)||g.push(a)});g.sort(Ka);var h=new J;q(g,function(a){h.add(a)});return h},1);R("lang",2,!1,!1,f(!1),1);
R("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.e},0);R("local-name",3,!1,!0,function(a,b){var c=b?lb(b.evaluate(a)):a.f;return c?c.nodeName.toLowerCase():""},0,1,!0);R("name",3,!1,!0,function(a,b){var c=b?lb(b.evaluate(a)):a.f;return c?c.nodeName.toLowerCase():""},0,1,!0);R("namespace-uri",3,!0,!1,f(""),0,1,!0);R("normalize-space",3,!1,!0,function(a,b){return(b?M(b,a):H(a.f)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);
R("not",2,!1,!1,function(a,b){return!N(b,a)},1);R("number",1,!1,!0,function(a,b){return b?L(b,a):+H(a.f)},0,1);R("position",1,!0,!1,function(a){return a.L},0);R("round",1,!1,!1,function(a,b){return Math.round(L(b,a))},1);R("starts-with",2,!1,!1,function(a,b,c){b=M(b,a);a=M(c,a);return 0==b.lastIndexOf(a,0)},2);R("string",3,!1,!0,function(a,b){return b?M(b,a):H(a.f)},0,1);R("string-length",1,!1,!0,function(a,b){return(b?M(b,a):H(a.f)).length},0,1);
R("substring",3,!1,!1,function(a,b,c,d){c=L(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?L(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=M(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);R("substring-after",3,!1,!1,function(a,b,c){b=M(b,a);a=M(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
R("substring-before",3,!1,!1,function(a,b,c){b=M(b,a);a=M(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);R("sum",1,!1,!1,function(a,b){var c;c=b.evaluate(a);c=new K(c,!1);for(var d=0,e=c.next();e;e=c.next())d+=+H(e);return d},1,1,!0);R("translate",3,!1,!1,function(a,b,c,d){b=M(b,a);c=M(c,a);var e=M(d,a);a=[];for(d=0;d");W(191,"/","?");W(192,"`","~");W(219,"[","{");W(220,"\\","|");W(221,"]","}");W({a:59,b:186,opera:59},";",":");W(222,"'",'"');var X=new V;X.set(1,Ib);
X.set(2,Jb);X.set(4,Kb);X.set(8,Lb);(function(a){var b=new V;q(Eb(a),function(c){b.set(a.get(c).code,c)});return b})(X);z&&wb(12);function Mb(){this.j=void 0}
function Nb(a,b,c){switch(typeof b){case "string":Ob(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"==l(b)){var d=b.length;c.push("[");for(var e="",g=0;gb?e+="000":256>b?e+="00":4096>b&&(e+="0");return Pb[a]=e+b.toString(16)}),'"')};ua||u||z&&wb(3.5)||w&&wb(8);function Rb(a){switch(l(a)){case "string":case "number":case "boolean":return a;case "function":return a.toString();case "array":return ga(a,Rb);case "object":if("nodeType"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=Sb(a);return b}if("document"in a)return b={},b.WINDOW=Sb(a),b;if(aa(a))return ga(a,Rb);a=Fa(a,function(a,b){return"number"==typeof b||m(b)});return Ga(a,Rb);default:return null}}
function Tb(a,b){return"array"==l(a)?ga(a,function(a){return Tb(a,b)}):ba(a)?"function"==typeof a?a:"ELEMENT"in a?Ub(a.ELEMENT,b):"WINDOW"in a?Ub(a.WINDOW,b):Ga(a,function(a){return Tb(a,b)}):a}function Vb(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.m=ca());b.m||(b.m=ca());return b}function Sb(a){var b=Vb(a.ownerDocument),c=Ha(b,function(b){return b==a});c||(c=":wdc:"+b.m++,b[c]=a);return c}
function Ub(a,b){a=decodeURIComponent(a);var c=b||document,d=Vb(c);if(!(a in d))throw new r(10,"Element does not exist in cache");var e=d[a];if("setInterval"in e){if(e.closed)throw delete d[a],new r(23,"Window has been closed.");return e}for(var g=e;g;){if(g==c.documentElement)return e;g=g.parentNode}delete d[a];throw new r(10,"Element is no longer attached to the DOM");};function Wb(a,b){var c=[a],d=Db,e;try{var g=b?Ub(b.WINDOW):window,h=Tb(c,g.document),n=d.apply(null,h);e={status:0,value:Rb(n)}}catch(v){e={status:"code"in v?v.code:13,value:{message:v.message}}}c=[];Nb(new Mb,e,c);return c.join("")}var Y=["_"],Z=k;Y[0]in Z||!Z.execScript||Z.execScript("var "+Y[0]);for(var $;Y.length&&($=Y.shift());)Y.length||void 0===Wb?Z=Z[$]?Z[$]:Z[$]={}:Z[$]=Wb;; 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