Bug 1275273 - Remove isElementSelected atom. r=maja_zf
authorAndreas Tolfsen <ato@sny.no>
Tue, 10 Oct 2017 14:45:21 +0100
changeset 385560 70b93f9bfa0c54bb994096249907f2b1897c5368
parent 385559 2057d4ff6717a1c21bf82e3a96f71fe256ce0b50
child 385561 5a914f74176876fb0e2bc92aa19c8589b3cc441e
push id32662
push userryanvm@gmail.com
push dateWed, 11 Oct 2017 21:53:47 +0000
treeherdermozilla-central@3d918ff5d634 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmaja_zf
bugs1275273
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1275273 - Remove isElementSelected atom. r=maja_zf MozReview-Commit-ID: Doxodn1jz0r
testing/marionette/atom.js
--- a/testing/marionette/atom.js
+++ b/testing/marionette/atom.js
@@ -230,69 +230,16 @@ c=Ka[c]||null;t(a.a);for(d=[];")"!=r(a.a
 function ib(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==r(a.a)){var c=new W(ab,new w("node"));t(a.a);return c}if(".."==r(a.a))return c=new W($a,new w("node")),t(a.a),c;if("@"==r(a.a)){var d=Oa;t(a.a);Y(a,"Missing attribute name")}else if("::"==r(a.a,1)){if(!/(?![0-9])[\w]/.test(r(a.a).charAt(0)))throw Error("Bad token: "+t(a.a));var e=t(a.a);d=Za[e]||null;if(!d)throw Error("No axis with name: "+e);t(a.a);Y(a,"Missing node name")}else d=Wa;e=r(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==
 r(a.a,1)){if(!ja(e))throw Error("Invalid node type: "+e);e=t(a.a);if(!ja(e))throw Error("Invalid type name: "+e);eb(a,"(");Y(a,"Bad nodetype");var f=r(a.a).charAt(0),g=null;if('"'==f||"'"==f)g=gb(a);Y(a,"Bad nodetype");fb(a);e=new w(e,g)}else if(e=t(a.a),f=e.indexOf(":"),-1==f)e=new y(e);else{var g=e.substring(0,f);if("*"==g)var l="*";else if(l=a.b(g),!l)throw Error("Namespace prefix not declared: "+g);e=e.substr(f+1);e=new y(e,l)}else throw Error("Bad token: "+t(a.a));a=new Ta(jb(a),d.s);return c||
 new W(d,e,a,"//"==b)}function jb(a){for(var b=[];"["==r(a.a);){t(a.a);Y(a,"Missing predicate expression.");var c=cb(a);b.push(c);Y(a,"Unclosed predicate expression.");eb(a,"]")}return b}function db(a){if("-"==r(a.a))return t(a.a),new Ua(db(a));var b=hb(a);if("|"!=r(a.a))a=b;else{for(b=[b];"|"==t(a.a);)Y(a,"Missing next union location path."),b.push(hb(a));a.a.a--;a=new Va(b)}return a};function kb(a,b){if(!a.length)throw Error("Empty XPath expression.");a=ga(a);if(u(a))throw Error("Invalid XPath expression.");b?"function"==ba(b)||(b=m(b.lookupNamespaceURI,b)):b=function(){return null};var c=cb(new bb(a,b));if(!u(a))throw Error("Bad token: "+t(a));this.evaluate=function(a,b){a=c.a(new q(a));return new Z(a,b)}}
 function Z(a,b){if(!b)if(a instanceof G)b=4;else if("string"==typeof a)b=2;else if("number"==typeof a)b=1;else if("boolean"==typeof a)b=3;else throw Error("Unexpected evaluation result.");if(2!=b&&1!=b&&3!=b&&!(a instanceof G))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof G?K(a):""+a;break;case 1:this.numberValue=a instanceof G?+K(a):+a;break;case 3:this.booleanValue=a instanceof G?0<a.l:!!a;break;case 4:case 5:case 6:case 7:var c=
 L(a);var d=[];for(var e=M(c);e;e=M(c))d.push(e);this.snapshotLength=a.l;this.invalidIteratorState=!1;break;case 8:case 9:this.singleNodeValue=J(a);break;default:throw Error("Unknown XPathResult type.");}var f=0;this.iterateNext=function(){if(4!=b&&5!=b)throw Error("iterateNext called with wrong result type");return f>=d.length?null:d[f++]};this.snapshotItem=function(a){if(6!=b&&7!=b)throw Error("snapshotItem called with wrong result type");return a>=d.length||0>a?null:d[a]}}Z.ANY_TYPE=0;
 Z.NUMBER_TYPE=1;Z.STRING_TYPE=2;Z.BOOLEAN_TYPE=3;Z.UNORDERED_NODE_ITERATOR_TYPE=4;Z.ORDERED_NODE_ITERATOR_TYPE=5;Z.UNORDERED_NODE_SNAPSHOT_TYPE=6;Z.ORDERED_NODE_SNAPSHOT_TYPE=7;Z.ANY_UNORDERED_NODE_TYPE=8;Z.FIRST_ORDERED_NODE_TYPE=9;function lb(a){this.lookupNamespaceURI=ka(a)}
 aa("wgxpath.install",function(a,b){a=a||h;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=Z,c.evaluate=function(a,b,c,g){return(new kb(a,c)).evaluate(b,g)},c.createExpression=function(a,b){return new kb(a,b)},c.createNSResolver=function(a){return new lb(a)}});var mb="BUTTON INPUT OPTGROUP OPTION SELECT TEXTAREA".split(" ");function nb(a){return C(mb,function(b){return I(a,b)})?a.disabled?!1:a.parentNode&&1==a.parentNode.nodeType&&I(a,"OPTGROUP")||I(a,"OPTION")?nb(a.parentNode):!ua(a,function(a){var b=a.parentNode;if(b&&I(b,"FIELDSET")&&b.disabled){if(!I(a,"LEGEND"))return!0;for(;a=void 0!==a.previousElementSibling?a.previousElementSibling:pa(a.previousSibling);)if(I(a,"LEGEND"))return!0}return!1}):!0};aa("_",nb);; return this._.apply(null,arguments);}.apply({navigator:typeof window!='undefined'?window.navigator:null,document:typeof window!='undefined'?window.document:null}, arguments);}
 
-// https://github.com/SeleniumHQ/selenium/blob/master/javascript/atoms/domcore.js#L198
-atom.isElementSelected = function(element, window){return function(){var f=this;function k(a){return"string"==typeof a}function aa(a,b){a=a.split(".");var c=f;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}
-function ba(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 ca(a,b,c){return a.call.apply(a.bind,arguments)}function da(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
-function l(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?l=ca:l=da;return l.apply(null,arguments)}function ea(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}
-function n(a,b){function c(){}c.prototype=b.prototype;a.O=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.N=function(a,c,g){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};function fa(a,b){this.code=a;this.a=p[a]||q;this.message=b||"";a=this.a.replace(/((?:^|\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\s\xa0]+/g,"")});b=a.length-5;if(0>b||a.indexOf("Error",b)!=b)a+="Error";this.name=a;a=Error(this.message);a.name=this.name;this.stack=a.stack||""}n(fa,Error);var q="unknown error",p={15:"element not selectable",11:"element not visible"};p[31]=q;p[30]=q;p[24]="invalid cookie domain";p[29]="invalid element coordinates";p[12]="invalid element state";
-p[32]="invalid selector";p[51]="invalid selector";p[52]="invalid selector";p[17]="javascript error";p[405]="unsupported operation";p[34]="move target out of bounds";p[27]="no such alert";p[7]="no such element";p[8]="no such frame";p[23]="no such window";p[28]="script timeout";p[33]="session not created";p[10]="stale element reference";p[21]="timeout";p[25]="unable to set cookie";p[26]="unexpected alert open";p[13]=q;p[9]="unknown command";fa.prototype.toString=function(){return this.name+": "+this.message};
-function r(a,b,c){this.a=a;this.b=b||1;this.i=c||1};function ga(a){this.b=a;this.a=0}function ha(a){a=a.match(ia);for(var b=0;b<a.length;b++)ja.test(a[b])&&a.splice(b,1);return new ga(a)}var ia=/\$?(?:(?![0-9-\.])(?:\*|[\w-\.]+):)?(?![0-9-\.])(?:\*|[\w-\.]+)|\/\/|\.\.|::|\d+(?:\.\d*)?|\.\d+|"[^"]*"|'[^']*'|[!<>]=|\s+|./g,ja=/^\s/;function t(a,b){return a.b[a.a+(b||0)]}ga.prototype.next=function(){return this.b[this.a++]};function u(a){return a.b.length<=a.a};var v;a:{var ka=f.navigator;if(ka){var la=ka.userAgent;if(la){v=la;break a}}v=""};function x(a,b){this.j=a;this.c=void 0!==b?b:null;this.b=null;switch(a){case "comment":this.b=8;break;case "text":this.b=3;break;case "processing-instruction":this.b=7;break;case "node":break;default:throw Error("Unexpected argument");}}function ma(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}x.prototype.a=function(a){return null===this.b||this.b==a.nodeType};x.prototype.i=function(){return this.j};
-x.prototype.toString=function(){var a="Kind Test: "+this.j;null===this.c||(a+=y(this.c));return a};function z(a,b){this.o=a.toLowerCase();a="*"==this.o?"*":"http://www.w3.org/1999/xhtml";this.b=b?b.toLowerCase():a}z.prototype.a=function(a){var b=a.nodeType;if(1!=b&&2!=b)return!1;b=void 0!==a.localName?a.localName:a.nodeName;return"*"!=this.o&&this.o!=b.toLowerCase()?!1:"*"==this.b?!0:this.b==(a.namespaceURI?a.namespaceURI.toLowerCase():"http://www.w3.org/1999/xhtml")};z.prototype.i=function(){return this.o};
-z.prototype.toString=function(){return"Name Test: "+("http://www.w3.org/1999/xhtml"==this.b?"":this.b+":")+this.o};function na(a){switch(a.nodeType){case 1:return ea(oa,a);case 9:return na(a.documentElement);case 11:case 10:case 6:case 12:return pa;default:return a.parentNode?na(a.parentNode):pa}}function pa(){return null}function oa(a,b){if(a.prefix==b)return a.namespaceURI||"http://www.w3.org/1999/xhtml";var c=a.getAttributeNode("xmlns:"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?oa(a.parentNode,b):null};function A(a,b){for(var c=a.length,d=k(a)?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)}function C(a,b,c){var d=c;A(a,function(c,g){d=b.call(void 0,d,c,g,a)});return d}function D(a,b){for(var c=a.length,d=k(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1}function qa(a){return Array.prototype.concat.apply([],arguments)}function ra(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var sa=-1!=v.indexOf("Macintosh"),ta=-1!=v.indexOf("Windows");function E(a,b){this.w={};this.m=[];this.a=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){if(a instanceof E){d=ua(a);va(a);var e=[];for(c=0;c<a.m.length;c++)e.push(a.w[a.m[c]])}else{var c=[],g=0;for(d in a)c[g++]=d;d=c;c=[];g=0;for(e in a)c[g++]=a[e];e=c}for(c=0;c<d.length;c++)this.set(d[c],e[c])}}function ua(a){va(a);return a.m.concat()}
-function va(a){var b,c;if(a.a!=a.m.length){for(b=c=0;c<a.m.length;){var d=a.m[c];Object.prototype.hasOwnProperty.call(a.w,d)&&(a.m[b++]=d);c++}a.m.length=b}if(a.a!=a.m.length){var e={};for(b=c=0;c<a.m.length;)d=a.m[c],Object.prototype.hasOwnProperty.call(e,d)||(a.m[b++]=d,e[d]=1),c++;a.m.length=b}}E.prototype.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.w,a)?this.w[a]:b};
-E.prototype.set=function(a,b){Object.prototype.hasOwnProperty.call(this.w,a)||(this.a++,this.m.push(a));this.w[a]=b};var wa,xa,ya=function(){var a=f.Components;if(!a)return!1;try{if(!a.classes)return!1}catch(g){return!1}var b=a.classes,a=a.interfaces,c=b["@mozilla.org/xpcom/version-comparator;1"].getService(a.nsIVersionComparator),b=b["@mozilla.org/xre/app-info;1"].getService(a.nsIXULAppInfo),d=b.platformVersion,e=b.version;wa=function(a){c.compare(d,""+a)};xa=function(a){c.compare(e,""+a)};return!0}();function za(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}
-function Aa(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-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?Ba(a,b):!c&&za(e,b)?-1*Ca(a,b):!d&&za(g,a)?Ca(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);
-a=d.createRange();a.selectNode(b);a.collapse(!0);return c.compareBoundaryPoints(f.Range.START_TO_END,a)}function Ca(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return Ba(b,a)}function Ba(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1};function F(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(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),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return""+b}
-function G(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function H(a,b,c,d,e){return Da.call(null,a,b,k(c)?c:null,k(d)?d:null,e||new I)}
-function Da(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),A(b,function(b){a.a(b)&&J(e,b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),A(b,function(b){b.className==d&&a.a(b)&&J(e,b)})):a instanceof x?Ea(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.i()),A(b,function(a){G(a,c,d)&&J(e,a)}));return e}function Ea(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)G(b,c,d)&&a.a(b)&&J(e,b),Ea(a,b,c,d,e)};function Fa(a,b){b&&"string"!==typeof b&&(b=b.toString());return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function Ga(a){return Fa(a,"OPTION")?!0:Fa(a,"INPUT")?(a=a.type.toLowerCase(),"checkbox"==a||"radio"==a):!1};function I(){this.b=this.a=null;this.s=0}function Ha(a){this.node=a;this.next=this.a=null}function Ia(a,b){if(!a.a)return b;if(!b.a)return a;var c=a.a;b=b.a;for(var d=null,e,g=0;c&&b;)c.node==b.node?(e=c,c=c.next,b=b.next):0<Aa(c.node,b.node)?(e=b,b=b.next):(e=c,c=c.next),(e.a=d)?d.next=e:a.a=e,d=e,g++;for(e=c||b;e;)e.a=d,d=d.next=e,g++,e=e.next;a.b=d;a.s=g;return a}function Ja(a,b){b=new Ha(b);b.next=a.a;a.b?a.a.a=b:a.a=a.b=b;a.a=b;a.s++}
-function J(a,b){b=new Ha(b);b.a=a.b;a.a?a.b.next=b:a.a=a.b=b;a.b=b;a.s++}function Ka(a){return(a=a.a)?a.node:null}function La(a){return(a=Ka(a))?F(a):""}I.prototype.iterator=function(a){return new Ma(this,!!a)};function Ma(a,b){this.i=a;this.b=(this.A=b)?a.b:a.a;this.a=null}Ma.prototype.next=function(){var a=this.b;if(a){var b=this.a=a;this.b=this.A?a.a:a.next;return b.node}return null};function K(a){this.l=a;this.b=this.h=!1;this.i=null}function y(a){return"\n  "+a.toString().split("\n").join("\n  ")}function Na(a,b){a.h=b}function Oa(a,b){a.b=b}function L(a,b){a=a.a(b);return a instanceof I?+La(a):+a}function M(a,b){a=a.a(b);return a instanceof I?La(a):""+a}function O(a,b){a=a.a(b);return a instanceof I?!!a.s:!!a};function P(a,b,c){K.call(this,a.l);this.c=a;this.j=b;this.v=c;this.h=b.h||c.h;this.b=b.b||c.b;this.c==Pa&&(c.b||c.h||4==c.l||0==c.l||!b.i?b.b||b.h||4==b.l||0==b.l||!c.i||(this.i={name:c.i.name,B:b}):this.i={name:b.i.name,B:c})}n(P,K);
-function Q(a,b,c,d,e){b=b.a(d);c=c.a(d);var g;if(b instanceof I&&c instanceof I){b=b.iterator();for(d=b.next();d;d=b.next())for(e=c.iterator(),g=e.next();g;g=e.next())if(a(F(d),F(g)))return!0;return!1}if(b instanceof I||c instanceof I){b instanceof I?(e=b,d=c):(e=c,d=b);g=e.iterator();for(var h=typeof d,m=g.next();m;m=g.next()){switch(h){case "number":m=+F(m);break;case "boolean":m=!!F(m);break;case "string":m=F(m);break;default:throw Error("Illegal primitive type for comparison.");}if(e==b&&a(m,
-d)||e==c&&a(d,m))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)}P.prototype.a=function(a){return this.c.u(this.j,this.v,a)};P.prototype.toString=function(){var a="Binary Expression: "+this.c,a=a+y(this.j);return a+=y(this.v)};function Qa(a,b,c,d){this.L=a;this.H=b;this.l=c;this.u=d}Qa.prototype.toString=function(){return this.L};var Ra={};
-function R(a,b,c,d){if(Ra.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new Qa(a,b,c,d);return Ra[a.toString()]=a}R("div",6,1,function(a,b,c){return L(a,c)/L(b,c)});R("mod",6,1,function(a,b,c){return L(a,c)%L(b,c)});R("*",6,1,function(a,b,c){return L(a,c)*L(b,c)});R("+",5,1,function(a,b,c){return L(a,c)+L(b,c)});R("-",5,1,function(a,b,c){return L(a,c)-L(b,c)});R("<",4,2,function(a,b,c){return Q(function(a,b){return a<b},a,b,c)});
-R(">",4,2,function(a,b,c){return Q(function(a,b){return a>b},a,b,c)});R("<=",4,2,function(a,b,c){return Q(function(a,b){return a<=b},a,b,c)});R(">=",4,2,function(a,b,c){return Q(function(a,b){return a>=b},a,b,c)});var Pa=R("=",3,2,function(a,b,c){return Q(function(a,b){return a==b},a,b,c,!0)});R("!=",3,2,function(a,b,c){return Q(function(a,b){return a!=b},a,b,c,!0)});R("and",2,2,function(a,b,c){return O(a,c)&&O(b,c)});R("or",1,2,function(a,b,c){return O(a,c)||O(b,c)});function Sa(a,b){if(b.a.length&&4!=a.l)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");K.call(this,a.l);this.c=a;this.j=b;this.h=a.h;this.b=a.b}n(Sa,K);Sa.prototype.a=function(a){a=this.c.a(a);return Ta(this.j,a)};Sa.prototype.toString=function(){var a="Filter:"+y(this.c);return a+=y(this.j)};function Ua(a,b){if(b.length<a.G)throw Error("Function "+a.o+" expects at least"+a.G+" arguments, "+b.length+" given");if(null!==a.F&&b.length>a.F)throw Error("Function "+a.o+" expects at most "+a.F+" arguments, "+b.length+" given");a.K&&A(b,function(b,d){if(4!=b.l)throw Error("Argument "+d+" to function "+a.o+" is not of type Nodeset: "+b);});K.call(this,a.l);this.C=a;this.c=b;Na(this,a.h||D(b,function(a){return a.h}));Oa(this,a.J&&!b.length||a.I&&!!b.length||D(b,function(a){return a.b}))}n(Ua,K);
-Ua.prototype.a=function(a){return this.C.u.apply(null,qa(a,this.c))};Ua.prototype.toString=function(){var a="Function: "+this.C;if(this.c.length)var b=C(this.c,function(a,b){return a+y(b)},"Arguments:"),a=a+y(b);return a};function Va(a,b,c,d,e,g,h,m,w){this.o=a;this.l=b;this.h=c;this.J=d;this.I=e;this.u=g;this.G=h;this.F=void 0!==m?m:h;this.K=!!w}Va.prototype.toString=function(){return this.o};var Wa={};
-function S(a,b,c,d,e,g,h,m){if(Wa.hasOwnProperty(a))throw Error("Function already created: "+a+".");Wa[a]=new Va(a,b,c,d,!1,e,g,h,m)}S("boolean",2,!1,!1,function(a,b){return O(b,a)},1);S("ceiling",1,!1,!1,function(a,b){return Math.ceil(L(b,a))},1);S("concat",3,!1,!1,function(a,b){return C(ra(arguments,1),function(b,d){return b+M(d,a)},"")},2,null);S("contains",2,!1,!1,function(a,b,c){b=M(b,a);a=M(c,a);return-1!=b.indexOf(a)},2);S("count",1,!1,!1,function(a,b){return b.a(a).s},1,1,!0);
-S("false",2,!1,!1,function(){return!1},0);S("floor",1,!1,!1,function(a,b){return Math.floor(L(b,a))},1);S("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=M(b,a).split(/\s+/);var e=[];A(a,function(a){a=d.getElementById(a);var b;if(!(b=!a)){a:if(k(e))b=k(a)&&1==a.length?e.indexOf(a,0):-1;else{for(b=0;b<e.length;b++)if(b in e&&e[b]===a)break a;b=-1}b=0<=b}b||e.push(a)});e.sort(Aa);var g=new I;A(e,function(a){J(g,a)});return g},1);S("lang",2,!1,!1,function(){return!1},1);
-S("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.i},0);S("local-name",3,!1,!0,function(a,b){return(a=b?Ka(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);S("name",3,!1,!0,function(a,b){return(a=b?Ka(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);S("namespace-uri",3,!0,!1,function(){return""},0,1,!0);S("normalize-space",3,!1,!0,function(a,b){return(b?M(b,a):F(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);
-S("not",2,!1,!1,function(a,b){return!O(b,a)},1);S("number",1,!1,!0,function(a,b){return b?L(b,a):+F(a.a)},0,1);S("position",1,!0,!1,function(a){return a.b},0);S("round",1,!1,!1,function(a,b){return Math.round(L(b,a))},1);S("starts-with",2,!1,!1,function(a,b,c){b=M(b,a);a=M(c,a);return!b.lastIndexOf(a,0)},2);S("string",3,!1,!0,function(a,b){return b?M(b,a):F(a.a)},0,1);S("string-length",1,!1,!0,function(a,b){return(b?M(b,a):F(a.a)).length},0,1);
-S("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);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);S("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);
-S("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);S("sum",1,!1,!1,function(a,b){a=b.a(a).iterator();b=0;for(var c=a.next();c;c=a.next())b+=+F(c);return b},1,1,!0);S("translate",3,!1,!1,function(a,b,c,d){b=M(b,a);c=M(c,a);var e=M(d,a);d={};for(var g=0;g<c.length;g++)a=c.charAt(g),a in d||(d[a]=e.charAt(g));c="";for(g=0;g<b.length;g++)a=b.charAt(g),c+=a in d?d[a]:a;return c},3);S("true",2,!1,!1,function(){return!0},0);function Xa(a){K.call(this,3);this.c=a.substring(1,a.length-1)}n(Xa,K);Xa.prototype.a=function(){return this.c};Xa.prototype.toString=function(){return"Literal: "+this.c};function Ya(a){K.call(this,1);this.c=a}n(Ya,K);Ya.prototype.a=function(){return this.c};Ya.prototype.toString=function(){return"Number: "+this.c};function Za(a,b){K.call(this,a.l);this.j=a;this.c=b;this.h=a.h;this.b=a.b;1==this.c.length&&(a=this.c[0],a.D||a.c!=$a||(a=a.v,"*"!=a.i()&&(this.i={name:a.i(),B:null})))}n(Za,K);function T(){K.call(this,4)}n(T,K);T.prototype.a=function(a){var b=new I;a=a.a;9==a.nodeType?J(b,a):J(b,a.ownerDocument);return b};T.prototype.toString=function(){return"Root Helper Expression"};function ab(){K.call(this,4)}n(ab,K);ab.prototype.a=function(a){var b=new I;J(b,a.a);return b};ab.prototype.toString=function(){return"Context Helper Expression"};
-function bb(a){return"/"==a||"//"==a}Za.prototype.a=function(a){var b=this.j.a(a);if(!(b instanceof I))throw Error("Filter expression must evaluate to nodeset.");a=this.c;for(var c=0,d=a.length;c<d&&b.s;c++){var e=a[c],g=b.iterator(e.c.A);if(e.h||e.c!=cb)if(e.h||e.c!=db){var h=g.next();for(b=e.a(new r(h));h=g.next();)h=e.a(new r(h)),b=Ia(b,h)}else h=g.next(),b=e.a(new r(h));else{for(h=g.next();(b=g.next())&&(!h.contains||h.contains(b))&&b.compareDocumentPosition(h)&8;h=b);b=e.a(new r(h))}}return b};
-Za.prototype.toString=function(){var a="Path Expression:"+y(this.j);if(this.c.length){var b=C(this.c,function(a,b){return a+y(b)},"Steps:");a+=y(b)}return a};function eb(a,b){this.a=a;this.A=!!b}
-function Ta(a,b,c){for(c=c||0;c<a.a.length;c++)for(var d=a.a[c],e=b.iterator(),g=b.s,h,m=0;h=e.next();m++){var w=a.A?g-m:m+1;h=d.a(new r(h,w,g));if("number"==typeof h)w=w==h;else if("string"==typeof h||"boolean"==typeof h)w=!!h;else if(h instanceof I)w=0<h.s;else throw Error("Predicate.evaluate returned an unexpected type.");if(!w){w=e;h=w.i;var B=w.a;if(!B)throw Error("Next must be called at least once before remove.");var N=B.a,B=B.next;N?N.next=B:h.a=B;B?B.a=N:h.b=N;h.s--;w.a=null}}return b}
-eb.prototype.toString=function(){return C(this.a,function(a,b){return a+y(b)},"Predicates:")};function fb(a){K.call(this,1);this.c=a;this.h=a.h;this.b=a.b}n(fb,K);fb.prototype.a=function(a){return-L(this.c,a)};fb.prototype.toString=function(){return"Unary Expression: -"+y(this.c)};function gb(a){K.call(this,4);this.c=a;Na(this,D(this.c,function(a){return a.h}));Oa(this,D(this.c,function(a){return a.b}))}n(gb,K);gb.prototype.a=function(a){var b=new I;A(this.c,function(c){c=c.a(a);if(!(c instanceof I))throw Error("Path expression must evaluate to NodeSet.");b=Ia(b,c)});return b};gb.prototype.toString=function(){return C(this.c,function(a,b){return a+y(b)},"Union Expression:")};function U(a,b,c,d){K.call(this,4);this.c=a;this.v=b;this.j=c||new eb([]);this.D=!!d;b=this.j;b=0<b.a.length?b.a[0].i:null;a.M&&b&&(this.i={name:b.name,B:b.B});a:{a=this.j;for(b=0;b<a.a.length;b++)if(c=a.a[b],c.h||1==c.l||0==c.l){a=!0;break a}a=!1}this.h=a}n(U,K);
-U.prototype.a=function(a){var b=a.a,c=this.i,d=null,e=null,g=0;c&&(d=c.name,e=c.B?M(c.B,a):null,g=1);if(this.D)if(this.h||this.c!=hb)if(b=(new U(ib,new x("node"))).a(a).iterator(),c=b.next())for(a=this.u(c,d,e,g);c=b.next();)a=Ia(a,this.u(c,d,e,g));else a=new I;else a=H(this.v,b,d,e),a=Ta(this.j,a,g);else a=this.u(a.a,d,e,g);return a};U.prototype.u=function(a,b,c,d){a=this.c.C(this.v,a,b,c);return a=Ta(this.j,a,d)};
-U.prototype.toString=function(){var a="Step:"+y("Operator: "+(this.D?"//":"/"));this.c.o&&(a+=y("Axis: "+this.c));a+=y(this.v);if(this.j.a.length){var b=C(this.j.a,function(a,b){return a+y(b)},"Predicates:");a+=y(b)}return a};function jb(a,b,c,d){this.o=a;this.C=b;this.A=c;this.M=d}jb.prototype.toString=function(){return this.o};var kb={};function V(a,b,c,d){if(kb.hasOwnProperty(a))throw Error("Axis already created: "+a);b=new jb(a,b,c,!!d);return kb[a]=b}
-V("ancestor",function(a,b){for(var c=new I;b=b.parentNode;)a.a(b)&&Ja(c,b);return c},!0);V("ancestor-or-self",function(a,b){var c=new I;do a.a(b)&&Ja(c,b);while(b=b.parentNode);return c},!0);
-var $a=V("attribute",function(a,b){var c=new I,d=a.i();if(b=b.attributes)if(a instanceof x&&null===a.b||"*"==d)for(d=0;a=b[d];d++)J(c,a);else(a=b.getNamedItem(d))&&J(c,a);return c},!1),hb=V("child",function(a,b,c,d,e){c=k(c)?c:null;d=k(d)?d:null;e=e||new I;for(b=b.firstChild;b;b=b.nextSibling)G(b,c,d)&&a.a(b)&&J(e,b);return e},!1,!0);V("descendant",H,!1,!0);
-var ib=V("descendant-or-self",function(a,b,c,d){var e=new I;G(b,c,d)&&a.a(b)&&J(e,b);return H(a,b,c,d,e)},!1,!0),cb=V("following",function(a,b,c,d){var e=new I;do for(var g=b;g=g.nextSibling;)G(g,c,d)&&a.a(g)&&J(e,g),e=H(a,g,c,d,e);while(b=b.parentNode);return e},!1,!0);V("following-sibling",function(a,b){for(var c=new I;b=b.nextSibling;)a.a(b)&&J(c,b);return c},!1);V("namespace",function(){return new I},!1);
-var lb=V("parent",function(a,b){var c=new I;if(9==b.nodeType)return c;if(2==b.nodeType)return J(c,b.ownerElement),c;b=b.parentNode;a.a(b)&&J(c,b);return c},!1),db=V("preceding",function(a,b,c,d){var e=new I,g=[];do g.unshift(b);while(b=b.parentNode);for(var h=1,m=g.length;h<m;h++){var w=[];for(b=g[h];b=b.previousSibling;)w.unshift(b);for(var B=0,N=w.length;B<N;B++)b=w[B],G(b,c,d)&&a.a(b)&&J(e,b),e=H(a,b,c,d,e)}return e},!0,!0);
-V("preceding-sibling",function(a,b){for(var c=new I;b=b.previousSibling;)a.a(b)&&Ja(c,b);return c},!0);var mb=V("self",function(a,b){var c=new I;a.a(b)&&J(c,b);return c},!1);function nb(a,b){this.a=a;this.b=b}function ob(a){for(var b,c=[];;){W(a,"Missing right hand side of binary expression.");b=pb(a);var d=a.a.next();if(!d)break;var e=(d=Ra[d]||null)&&d.H;if(!e){a.a.a--;break}for(;c.length&&e<=c[c.length-1].H;)b=new P(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new P(c.pop(),c.pop(),b);return b}function W(a,b){if(u(a.a))throw Error(b);}function qb(a,b){a=a.a.next();if(a!=b)throw Error("Bad token, expected: "+b+" got: "+a);}
-function rb(a){a=a.a.next();if(")"!=a)throw Error("Bad token: "+a);}function sb(a){a=a.a.next();if(2>a.length)throw Error("Unclosed literal string");return new Xa(a)}
-function tb(a){var b=[];if(bb(t(a.a))){var c=a.a.next();var d=t(a.a);if("/"==c&&(u(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new T;d=new T;W(a,"Missing next location step.");c=ub(a,c);b.push(c)}else{a:{c=t(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":a.a.next();c=ob(a);W(a,'unclosed "("');qb(a,")");break;case '"':case "'":c=sb(a);break;default:if(isNaN(+c))if(!ma(c)&&/(?![0-9])[\w]/.test(d)&&"("==t(a.a,1)){c=
-a.a.next();c=Wa[c]||null;a.a.next();for(d=[];")"!=t(a.a);){W(a,"Missing function argument list.");d.push(ob(a));if(","!=t(a.a))break;a.a.next()}W(a,"Unclosed function argument list.");rb(a);c=new Ua(c,d)}else{c=null;break a}else c=new Ya(+a.a.next())}"["==t(a.a)&&(d=new eb(vb(a)),c=new Sa(c,d))}if(c)if(bb(t(a.a)))d=c;else return c;else c=ub(a,"/"),d=new ab,b.push(c)}for(;bb(t(a.a));)c=a.a.next(),W(a,"Missing next location step."),c=ub(a,c),b.push(c);return new Za(d,b)}
-function ub(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==t(a.a)){var c=new U(mb,new x("node"));a.a.next();return c}if(".."==t(a.a))return c=new U(lb,new x("node")),a.a.next(),c;if("@"==t(a.a)){var d=$a;a.a.next();W(a,"Missing attribute name")}else if("::"==t(a.a,1)){if(!/(?![0-9])[\w]/.test(t(a.a).charAt(0)))throw Error("Bad token: "+a.a.next());var e=a.a.next();d=kb[e]||null;if(!d)throw Error("No axis with name: "+e);a.a.next();W(a,"Missing node name")}else d=hb;e=
-t(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==t(a.a,1)){if(!ma(e))throw Error("Invalid node type: "+e);e=a.a.next();if(!ma(e))throw Error("Invalid type name: "+e);qb(a,"(");W(a,"Bad nodetype");var g=t(a.a).charAt(0),h=null;if('"'==g||"'"==g)h=sb(a);W(a,"Bad nodetype");rb(a);e=new x(e,h)}else if(e=a.a.next(),g=e.indexOf(":"),-1==g)e=new z(e);else{var h=e.substring(0,g);if("*"==h)var m="*";else if(m=a.b(h),!m)throw Error("Namespace prefix not declared: "+h);e=e.substr(g+1);e=new z(e,m)}else throw Error("Bad token: "+
-a.a.next());a=new eb(vb(a),d.A);return c||new U(d,e,a,"//"==b)}function vb(a){for(var b=[];"["==t(a.a);){a.a.next();W(a,"Missing predicate expression.");var c=ob(a);b.push(c);W(a,"Unclosed predicate expression.");qb(a,"]")}return b}function pb(a){if("-"==t(a.a))return a.a.next(),new fb(pb(a));var b=tb(a);if("|"!=t(a.a))a=b;else{for(b=[b];"|"==a.a.next();)W(a,"Missing next union location path."),b.push(tb(a));a.a.a--;a=new gb(b)}return a};function wb(a,b){if(!a.length)throw Error("Empty XPath expression.");a=ha(a);if(u(a))throw Error("Invalid XPath expression.");b?"function"==ba(b)||(b=l(b.lookupNamespaceURI,b)):b=function(){return null};var c=ob(new nb(a,b));if(!u(a))throw Error("Bad token: "+a.next());this.evaluate=function(a,b){a=c.a(new r(a));return new X(a,b)}}
-function X(a,b){if(!b)if(a instanceof I)b=4;else if("string"==typeof a)b=2;else if("number"==typeof a)b=1;else if("boolean"==typeof a)b=3;else throw Error("Unexpected evaluation result.");if(2!=b&&1!=b&&3!=b&&!(a instanceof I))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof I?La(a):""+a;break;case 1:this.numberValue=a instanceof I?+La(a):+a;break;case 3:this.booleanValue=a instanceof I?0<a.s:!!a;break;case 4:case 5:case 6:case 7:var c=
-a.iterator();var d=[];for(var e=c.next();e;e=c.next())d.push(e);this.snapshotLength=a.s;this.invalidIteratorState=!1;break;case 8:case 9:this.singleNodeValue=Ka(a);break;default:throw Error("Unknown XPathResult type.");}var g=0;this.iterateNext=function(){if(4!=b&&5!=b)throw Error("iterateNext called with wrong result type");return g>=d.length?null:d[g++]};this.snapshotItem=function(a){if(6!=b&&7!=b)throw Error("snapshotItem called with wrong result type");return a>=d.length||0>a?null:d[a]}}
-X.ANY_TYPE=0;X.NUMBER_TYPE=1;X.STRING_TYPE=2;X.BOOLEAN_TYPE=3;X.UNORDERED_NODE_ITERATOR_TYPE=4;X.ORDERED_NODE_ITERATOR_TYPE=5;X.UNORDERED_NODE_SNAPSHOT_TYPE=6;X.ORDERED_NODE_SNAPSHOT_TYPE=7;X.ANY_UNORDERED_NODE_TYPE=8;X.FIRST_ORDERED_NODE_TYPE=9;function xb(a){this.lookupNamespaceURI=na(a)}
-aa("wgxpath.install",function(a,b){a=a||f;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=X,c.evaluate=function(a,b,c,h){return(new wb(a,c)).evaluate(b,h)},c.createExpression=function(a,b){return new wb(a,b)},c.createNSResolver=function(a){return new xb(a)}});ya&&ya&&xa(3.6);var yb={};function Y(a,b,c){var d=typeof a;("object"==d&&null!=a||"function"==d)&&(a=a.f);a=new zb(a);!b||b in yb&&!c||(yb[b]={key:a,shift:!1},c&&(yb[c]={key:a,shift:!0}));return a}function zb(a){this.code=a}Y(8);Y(9);Y(13);var Ab=Y(16),Bb=Y(17),Cb=Y(18);Y(19);Y(20);Y(27);Y(32," ");Y(33);Y(34);Y(35);Y(36);Y(37);Y(38);Y(39);Y(40);Y(44);Y(45);Y(46);Y(48,"0",")");Y(49,"1","!");Y(50,"2","@");Y(51,"3","#");Y(52,"4","$");Y(53,"5","%");Y(54,"6","^");Y(55,"7","&");Y(56,"8","*");Y(57,"9","(");Y(65,"a","A");
-Y(66,"b","B");Y(67,"c","C");Y(68,"d","D");Y(69,"e","E");Y(70,"f","F");Y(71,"g","G");Y(72,"h","H");Y(73,"i","I");Y(74,"j","J");Y(75,"k","K");Y(76,"l","L");Y(77,"m","M");Y(78,"n","N");Y(79,"o","O");Y(80,"p","P");Y(81,"q","Q");Y(82,"r","R");Y(83,"s","S");Y(84,"t","T");Y(85,"u","U");Y(86,"v","V");Y(87,"w","W");Y(88,"x","X");Y(89,"y","Y");Y(90,"z","Z");var Db=Y(ta?{f:91,g:91}:sa?{f:224,g:91}:{f:0,g:91});Y(ta?{f:92,g:92}:sa?{f:224,g:93}:{f:0,g:92});Y(ta?{f:93,g:93}:sa?{f:0,g:0}:{f:93,g:null});
-Y({f:96,g:96},"0");Y({f:97,g:97},"1");Y({f:98,g:98},"2");Y({f:99,g:99},"3");Y({f:100,g:100},"4");Y({f:101,g:101},"5");Y({f:102,g:102},"6");Y({f:103,g:103},"7");Y({f:104,g:104},"8");Y({f:105,g:105},"9");Y({f:106,g:106},"*");Y({f:107,g:107},"+");Y({f:109,g:109},"-");Y({f:110,g:110},".");Y({f:111,g:111},"/");Y(144);Y(112);Y(113);Y(114);Y(115);Y(116);Y(117);Y(118);Y(119);Y(120);Y(121);Y(122);Y(123);Y({f:107,g:187},"=","+");Y(108,",");Y({f:109,g:189},"-","_");Y(188,",","<");Y(190,".",">");Y(191,"/","?");
-Y(192,"`","~");Y(219,"[","{");Y(220,"\\","|");Y(221,"]","}");Y({f:59,g:186},";",":");Y(222,"'",'"');var Z=new E;Z.set(1,Ab);Z.set(2,Bb);Z.set(4,Cb);Z.set(8,Db);(function(a){var b=new E;A(ua(a),function(c){b.set(a.get(c).code,c)});return b})(Z);ya&&wa(12);aa("_",function(a){if(Ga(a)){if(!Ga(a))throw new fa(15,"Element is not selectable");var b="selected",c=a.type&&a.type.toLowerCase();if("checkbox"==c||"radio"==c)b="checked";a=!!a[b]}else a=!1;return a});; return this._.apply(null,arguments);}.apply({navigator:typeof window!='undefined'?window.navigator:null,document:typeof window!='undefined'?window.document:null}, arguments);}
-
 // https://github.com/SeleniumHQ/selenium/blob/master/javascript/atoms/dom.js#L435
 atom.isElementDisplayed = function(element, window){return function(){var aa=this;function h(a){return void 0!==a}function l(a){return"string"==typeof a}function ba(a,b){a=a.split(".");var c=aa;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&h(b)?c[d]=b:c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}}
 function ca(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 da(a,b,c){return a.call.apply(a.bind,arguments)}function ea(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
 function fa(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?fa=da:fa=ea;return fa.apply(null,arguments)}function ga(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}
 function n(a,b){function c(){}c.prototype=b.prototype;a.L=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.K=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};function ha(a,b){this.code=a;this.a=p[a]||ia;this.message=b||"";a=this.a.replace(/((?:^|\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\s\xa0]+/g,"")});b=a.length-5;if(0>b||a.indexOf("Error",b)!=b)a+="Error";this.name=a;a=Error(this.message);a.name=this.name;this.stack=a.stack||""}n(ha,Error);var ia="unknown error",p={15:"element not selectable",11:"element not visible"};p[31]=ia;p[30]=ia;p[24]="invalid cookie domain";p[29]="invalid element coordinates";p[12]="invalid element state";
 p[32]="invalid selector";p[51]="invalid selector";p[52]="invalid selector";p[17]="javascript error";p[405]="unsupported operation";p[34]="move target out of bounds";p[27]="no such alert";p[7]="no such element";p[8]="no such frame";p[23]="no such window";p[28]="script timeout";p[33]="session not created";p[10]="stale element reference";p[21]="timeout";p[25]="unable to set cookie";p[26]="unexpected alert open";p[13]=ia;p[9]="unknown command";ha.prototype.toString=function(){return this.name+": "+this.message};var ja={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
 darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",