How to use document.createElement method in Cypress

Best JavaScript code snippet using cypress

javascript.js

Source:javascript.js Github

copy

Full Screen

...173		}174	}175	176	177	var option0 = document.createElement("option");178	option0.text = "Select Area";179	option0.value = "";180	x.add(option0);181	x.disabled= true;182	183	if(val == "AHMEDABAD"){184		x.disabled= false;185		var option1 = document.createElement("option");186		option1.text = option1.value = "KHAMBHATT UNIT";187		x.add(option1);188		189		var option2 = document.createElement("option");190		option2.text = option2.value = "MEHSANA UNIT";191		x.add(option2);192		193		var option3 = document.createElement("option");194		option3.text = option3.value = "MANINAGAR UNIT";195		x.add(option3);196		197		var option4 = document.createElement("option");198		option4.text = option4.value = "SABARMATI UNIT";199		x.add(option4);200		201		var option5 = document.createElement("option");202		option5.text = option5.value = "PALDI UNIT";203		x.add(option5);204		205		var option6 = document.createElement("option");206		option6.text = option6.value = "GANDHINAGAR UNIT";207		x.add(option6);208		209		var option7 = document.createElement("option");210		option7.text = option7.value = "C G ROAD UNIT";211		x.add(option7);212		213		var option8 = document.createElement("option");214		option8.text = option8.value = "BAPUNAGAR UNIT";215		x.add(option8);216		217		var option9 = document.createElement("option");218		option9.text = option9.value = "NADIAD UNIT";219		x.add(option9);220		221		var option10 = document.createElement("option");222		option10.text = option10.value = "HIMMATNAGAR UNIT";223		x.add(option10);224		225		var option11 = document.createElement("option");226		option11.text = option11.value = "ANAND UNIT";227		x.add(option11);228		229		var option12 = document.createElement("option");230		option12.text = option12.value = "MODASA UNIT";231		x.add(option12);232		233		var option13 = document.createElement("option");234		option13.text = option13.value = "KALOL UNIT";235		x.add(option13);236		237		var option14 = document.createElement("option");238		option14.text = option14.value = "SURENDRANAGAR UNIT";239		x.add(option14);240		241		var option15 = document.createElement("option");242		option15.text = option15.value = "PALANPUR UNIT";243		x.add(option15);244		245	}else if(val == "BARODA"){246		x.disabled= false;247	248		var option1 = document.createElement("option"); 249		option1.text = option1.value = "BARODA UNIT";250		x.add(option1);251	252		var option2 = document.createElement("option");253		option2.text = option2.value = "PRATAP NAGAR UNIT";254		x.add(option2);255	256		var option3 = document.createElement("option");257		option3.text = option3.value = "RACE COURSE UNIT";258		x.add(option3);259	260		var option4 = document.createElement("option");261		option4.text = option4.value = "WARASHIYA UNIT";262		x.add(option4);263	264		var option5 = document.createElement("option");265		option5.text = option5.value = "GODHARA UNIT";266		x.add(option5);267	268		var option6 = document.createElement("option");269		option6.text = option6.value = "BHARUCH UNIT";270		x.add(option6);271	}272	else if(val == "NAGPUR"){273		x.disabled= false;274	275		var option1 = document.createElement("option"); 276		option1.text = option1.value = "NAGPUR UNIT";277		x.add(option1);278	279		var option2 = document.createElement("option");280		option2.text = option2.value = "CHANDRAPUR UNIT";281		x.add(option2);282	283	}else if(val == "PUNE"){284		x.disabled= false;285	286		var option1 = document.createElement("option"); 287		option1.text = option1.value = "PUNE UNIT";288		x.add(option1);289	290		var option2 = document.createElement("option");291		option2.text = option2.value = "SATARA UNIT";292		x.add(option2);293	294	}else if(val == "KOLKATA"){295		x.disabled= false;296	297		var option1 = document.createElement("option"); 298		option1.text = option1.value = "KOLKATA UNIT";299		x.add(option1);300		301	}else if(val == "RAJKOT"){302		x.disabled= false;303	304		var option1 = document.createElement("option"); 305		option1.text = option1.value = "GANDHIDHAM UNIT";306		x.add(option1);307	308		var option2 = document.createElement("option");309		option2.text = option2.value = "VERAVAL UNIT";310		x.add(option2);311	312		var option3 = document.createElement("option");313		option3.text = option3.value = "PORBANDAR UNIT";314		x.add(option3);315	316		var option4 = document.createElement("option");317		option4.text = option4.value = "JUNAGADH UNIT";318		x.add(option4);319	320		var option5 = document.createElement("option");321		option5.text = option5.value = "RAJKOT UNIT";322		x.add(option5);323	324	}else if(val == "SURAT"){325		x.disabled= false;326	327		var option1 = document.createElement("option"); 328		option1.text = option1.value = "DL CABNET(SURAT) UNIT";329		x.add(option1);330	331		var option2 = document.createElement("option");332		option2.text = option2.value = "KAILASH NAGAR UNIT";333		x.add(option2);334	335		var option3 = document.createElement("option");336		option3.text = option3.value = "ADAJAN UNIT";337		x.add(option3);338	339		var option4 = document.createElement("option");340		option4.text = option4.value = "NAVSARI UNIT";341		x.add(option4);342	343		var option5 = document.createElement("option");344		option5.text = option5.value = "VALSAD UNIT";345		x.add(option5);346		347		var option6 = document.createElement("option");348		option6.text = option5.value = "MANCHARPURA UNIT";349		x.add(option6);350		351		var option7 = document.createElement("option");352		option7.text = option5.value = "RAJWADI UNIT";353		x.add(option7);354	355	}else if(val == "UDAIPUR"){356		x.disabled= false;357	358		var option1 = document.createElement("option"); 359		option1.text = option1.value = "UDAIPUR UNIT";360		x.add(option1);361		362	}else if(val == "OUT STATION"){363		x.disabled= false;364	365		var option1 = document.createElement("option"); 366		option1.text = option1.value = "OUT STATION UNIT";367		x.add(option1);368		369	}else if(val == "INDORE"){370		x.disabled= false;371	372		var option1 = document.createElement("option"); 373		option1.text = option1.value = "INDORE UNIT";374		x.add(option1);375		376	}else if(val == "SOLAPUR"){377		x.disabled= false;378	379		var option1 = document.createElement("option"); 380		option1.text = option1.value = "SOLAPUR UNIT";381		x.add(option1);382		383	}else if(val == "VISAKHAPATNAM"){384		x.disabled= false;385	386		var option1 = document.createElement("option"); 387		option1.text = option1.value = "VISAKHAPATNAM UNIT";388		x.add(option1);389		390	}else if(val == "ASSAM"){391		x.disabled= false;392	393		var option1 = document.createElement("option"); 394		option1.text = option1.value = "GUWAHATI UNIT";395		x.add(option1);396		var option2 = document.createElement("option");397		option2.text = option2.value = "DIBRUGARH UNIT";398		x.add(option2);399	400		var option3 = document.createElement("option");401		option3.text = option3.value = "JORHAT UNIT";402		x.add(option3);403		404	}else if(val == "PATNA"){405		x.disabled= false;406	407		var option1 = document.createElement("option"); 408		option1.text = option1.value = "PATNA UNIT";409		x.add(option1);410		var option2 = document.createElement("option");411		option2.text = option2.value = "GAYA UNIT";412		x.add(option2);413			414	}else if(val == "RANCHI"){415		x.disabled= false;416	417		var option1 = document.createElement("option"); 418		option1.text = option1.value = "RANCHI UNIT";419		x.add(option1);420		var option2 = document.createElement("option");421		option2.text = option2.value = "DHANBAD UNIT";422		x.add(option2);423			424	}425}426function selectarea_bb(val){427	var x = document.getElementById("edit-submitted-area-broadband");428	//edit-submitted-select-city429	var length = x.options.length;430	431	var i = 0;432	for (i = 0; i < length; i++) {433	  x.options[i] = null;434	}435	436	for (j = 0; j < 10; j++) {437		var length = x.options.length;438		if(length != 0){439			for (i = 0; i < length; i++) {440				x.options[i] = null;441			}442		}443	}444	445	446	var option0 = document.createElement("option");447	option0.text = "Select Area";448	option0.value = "";449	x.add(option0);450	x.disabled= true;451	452	if(val == "AHMEDABAD"){453		x.disabled= false;454		var option1 = document.createElement("option");455		option1.text = option1.value = "KHAMBHATT UNIT";456		x.add(option1);457		458		var option2 = document.createElement("option");459		option2.text = option2.value = "MEHSANA UNIT";460		x.add(option2);461		462		var option3 = document.createElement("option");463		option3.text = option3.value = "MANINAGAR UNIT";464		x.add(option3);465		466		var option4 = document.createElement("option");467		option4.text = option4.value = "SABARMATI UNIT";468		x.add(option4);469		470		var option5 = document.createElement("option");471		option5.text = option5.value = "PALDI UNIT";472		x.add(option5);473		474		var option6 = document.createElement("option");475		option6.text = option6.value = "GANDHINAGAR UNIT";476		x.add(option6);477		478		var option7 = document.createElement("option");479		option7.text = option7.value = "C G ROAD UNIT";480		x.add(option7);481		482		var option8 = document.createElement("option");483		option8.text = option8.value = "BAPUNAGAR UNIT";484		x.add(option8);485		486		var option9 = document.createElement("option");487		option9.text = option9.value = "NADIAD UNIT";488		x.add(option9);489		490		var option10 = document.createElement("option");491		option10.text = option10.value = "HIMMATNAGAR UNIT";492		x.add(option10);493		494		var option11 = document.createElement("option");495		option11.text = option11.value = "ANAND UNIT";496		x.add(option11);497		498		var option12 = document.createElement("option");499		option12.text = option12.value = "MODASA UNIT";500		x.add(option12);501		502		var option13 = document.createElement("option");503		option13.text = option13.value = "KALOL UNIT";504		x.add(option13);505		506		var option14 = document.createElement("option");507		option14.text = option14.value = "SURENDRANAGAR UNIT";508		x.add(option14);509		510		var option15 = document.createElement("option");511		option15.text = option15.value = "PALANPUR UNIT";512		x.add(option15);513		514		var option16 = document.createElement("option");515		option16.text = option16.value = "VISION MANINAGAR UNIT";516		x.add(option16);517		518		var option17 = document.createElement("option");519		option17.text = option17.value = "VISION HAVELI UNIT";520		x.add(option17);521		522	}else if(val == "BARODA"){523		x.disabled= false;524	525		var option1 = document.createElement("option"); 526		option1.text = option1.value = "BARODA UNIT";527		x.add(option1);528	529		var option2 = document.createElement("option");530		option2.text = option2.value = "PRATAP NAGAR UNIT";531		x.add(option2);532	533		var option3 = document.createElement("option");534		option3.text = option3.value = "RACE COURSE UNIT";535		x.add(option3);536	537		var option4 = document.createElement("option");538		option4.text = option4.value = "WARASHIYA UNIT";539		x.add(option4);540	541		var option5 = document.createElement("option");542		option5.text = option5.value = "GODHARA UNIT";543		x.add(option5);544	545		var option6 = document.createElement("option");546		option6.text = option6.value = "BHARUCH UNIT";547		x.add(option6);548		549		var option7 = document.createElement("option"); 550		option7.text = option7.value = "BODELI UNIT";551		x.add(option7);552	553		var option8 = document.createElement("option");554		option8.text = option8.value = "DABHOI UNIT";555		x.add(option8);556	557		var option9 = document.createElement("option");558		option9.text = option9.value = "DAHOD UNIT";559		x.add(option9);560	561		var option10 = document.createElement("option");562		option10.text = option10.value = "HALOL UNIT";563		x.add(option10);564	565		var option11 = document.createElement("option");566		option11.text = option11.value = "KAALOL UNIT";567		x.add(option11);568	569		var option12 = document.createElement("option");570		option12.text = option12.value = "PADRA UNIT";571		x.add(option12);572	}573	else if(val == "NAGPUR"){574		x.disabled= false;575	576		var option1 = document.createElement("option"); 577		option1.text = option1.value = "NAGPUR UNIT";578		x.add(option1);579	580		var option2 = document.createElement("option");581		option2.text = option2.value = "CHANDRAPUR UNIT";582		x.add(option2);583	584	}else if(val == "PUNE"){585		x.disabled= false;586	587		var option1 = document.createElement("option"); 588		option1.text = option1.value = "PUNE UNIT";589		x.add(option1);590	591		var option2 = document.createElement("option");592		option2.text = option2.value = "SATARA UNIT";593		x.add(option2);594	595	}else if(val == "KOLKATA"){596		x.disabled= false;597	598		var option1 = document.createElement("option"); 599		option1.text = option1.value = "KOLKATA UNIT";600		x.add(option1);601		602	}else if(val == "RAJKOT"){603		x.disabled= false;604	605		var option1 = document.createElement("option"); 606		option1.text = option1.value = "GANDHIDHAM UNIT";607		x.add(option1);608	609		var option2 = document.createElement("option");610		option2.text = option2.value = "VERAVAL UNIT";611		x.add(option2);612	613		var option3 = document.createElement("option");614		option3.text = option3.value = "PORBANDAR UNIT";615		x.add(option3);616	617		var option4 = document.createElement("option");618		option4.text = option4.value = "JUNAGADH UNIT";619		x.add(option4);620	621		var option5 = document.createElement("option");622		option5.text = option5.value = "RAJKOT UNIT";623		x.add(option5);624		625		var option6 = document.createElement("option"); 626		option6.text = option6.value = "AMRELI UNIT";627		x.add(option6);628	629		var option7 = document.createElement("option");630		option7.text = option7.value = "JAMNAGAR UNIT";631		x.add(option7);632	633		var option8 = document.createElement("option");634		option8.text = option8.value = "KUTCH UNIT";635		x.add(option8);636	637		var option9 = document.createElement("option");638		option9.text = option9.value = "MUNDRA UNIT";639		x.add(option9);640	641		var option10 = document.createElement("option");642		option10.text = option10.value = "MORBI UNIT";643		x.add(option10);644	645	}else if(val == "SURAT"){646		x.disabled= false;647	648		var option1 = document.createElement("option"); 649		option1.text = option1.value = "DL CABNET(SURAT) UNIT";650		x.add(option1);651	652		var option2 = document.createElement("option");653		option2.text = option2.value = "KAILASH NAGAR UNIT";654		x.add(option2);655	656		var option3 = document.createElement("option");657		option3.text = option3.value = "ADAJAN UNIT";658		x.add(option3);659	660		var option4 = document.createElement("option");661		option4.text = option4.value = "NAVSARI UNIT";662		x.add(option4);663	664		var option5 = document.createElement("option");665		option5.text = option5.value = "VALSAD UNIT";666		x.add(option5);667		668		var option6 = document.createElement("option");669		option6.text = option5.value = "MANCHARPURA UNIT";670		x.add(option6);671		672		var option7 = document.createElement("option");673		option7.text = option5.value = "RAJWADI UNIT";674		x.add(option7);675	676	}else if(val == "UDAIPUR"){677		x.disabled= false;678	679		var option1 = document.createElement("option"); 680		option1.text = option1.value = "UDAIPUR UNIT";681		x.add(option1);682		683	}else if(val == "OUT STATION"){684		x.disabled= false;685	686		var option1 = document.createElement("option"); 687		option1.text = option1.value = "OUT STATION UNIT";688		x.add(option1);689		690	}else if(val == "INDORE"){691		x.disabled= false;692	693		var option1 = document.createElement("option"); 694		option1.text = option1.value = "INDORE UNIT";695		x.add(option1);696		697	}else if(val == "SOLAPUR"){698		x.disabled= false;699	700		var option1 = document.createElement("option"); 701		option1.text = option1.value = "SOLAPUR UNIT";702		x.add(option1);703		704	}else if(val == "VISAKHAPATNAM"){705		x.disabled= false;706	707		var option1 = document.createElement("option"); 708		option1.text = option1.value = "VISAKHAPATNAM UNIT";709		x.add(option1);710		711	}else if(val == "ASSAM"){712		x.disabled= false;713	714		var option1 = document.createElement("option"); 715		option1.text = option1.value = "GUWAHATI UNIT";716		x.add(option1);717		var option2 = document.createElement("option");718		option2.text = option2.value = "DIBRUGARH UNIT";719		x.add(option2);720	721		var option3 = document.createElement("option");722		option3.text = option3.value = "JORHAT UNIT";723		x.add(option3);724		725	}else if(val == "PATNA"){726		x.disabled= false;727	728		var option1 = document.createElement("option"); 729		option1.text = option1.value = "PATNA UNIT";730		x.add(option1);731		var option2 = document.createElement("option");732		option2.text = option2.value = "GAYA UNIT";733		x.add(option2);734			735	}else if(val == "RANCHI"){736		x.disabled= false;737	738		var option1 = document.createElement("option"); 739		option1.text = option1.value = "RANCHI UNIT";740		x.add(option1);741		var option2 = document.createElement("option");742		option2.text = option2.value = "DHANBAD UNIT";743		x.add(option2);744			745	}746	747}748function city_add(url){749	var a = document.getElementById('area_selection');750	//session.setAttribute('test_variable','value');751	//return false;752	if(a != null){753		window.location.assign(url+"/"+a.value);754	}755}...

Full Screen

Full Screen

javascript1.js

Source:javascript1.js Github

copy

Full Screen

...173		}174	}175	176	177	var option0 = document.createElement("option");178	option0.text = "Select Area";179	option0.value = "";180	x.add(option0);181	x.disabled= true;182	183	if(val == "AHMEDABAD"){184		x.disabled= false;185		var option1 = document.createElement("option");186		option1.text = option1.value = "KHAMBHATT UNIT";187		x.add(option1);188		189		var option2 = document.createElement("option");190		option2.text = option2.value = "MEHSANA UNIT";191		x.add(option2);192		193		var option3 = document.createElement("option");194		option3.text = option3.value = "MANINAGAR UNIT";195		x.add(option3);196		197		var option4 = document.createElement("option");198		option4.text = option4.value = "SABARMATI UNIT";199		x.add(option4);200		201		var option5 = document.createElement("option");202		option5.text = option5.value = "PALDI UNIT";203		x.add(option5);204		205		var option6 = document.createElement("option");206		option6.text = option6.value = "GANDHINAGAR UNIT";207		x.add(option6);208		209		var option7 = document.createElement("option");210		option7.text = option7.value = "C G ROAD UNIT";211		x.add(option7);212		213		var option8 = document.createElement("option");214		option8.text = option8.value = "BAPUNAGAR UNIT";215		x.add(option8);216		217		var option9 = document.createElement("option");218		option9.text = option9.value = "NADIAD UNIT";219		x.add(option9);220		221		var option10 = document.createElement("option");222		option10.text = option10.value = "HIMMATNAGAR UNIT";223		x.add(option10);224		225		var option11 = document.createElement("option");226		option11.text = option11.value = "ANAND UNIT";227		x.add(option11);228		229		var option12 = document.createElement("option");230		option12.text = option12.value = "MODASA UNIT";231		x.add(option12);232		233		var option13 = document.createElement("option");234		option13.text = option13.value = "KALOL UNIT";235		x.add(option13);236		237		var option14 = document.createElement("option");238		option14.text = option14.value = "SURENDRANAGAR UNIT";239		x.add(option14);240		241		var option15 = document.createElement("option");242		option15.text = option15.value = "PALANPUR UNIT";243		x.add(option15);244		245	}else if(val == "BARODA"){246		x.disabled= false;247	248		var option1 = document.createElement("option"); 249		option1.text = option1.value = "BARODA UNIT";250		x.add(option1);251	252		var option2 = document.createElement("option");253		option2.text = option2.value = "PRATAP NAGAR UNIT";254		x.add(option2);255	256		var option3 = document.createElement("option");257		option3.text = option3.value = "RACE COURSE UNIT";258		x.add(option3);259	260		var option4 = document.createElement("option");261		option4.text = option4.value = "WARASHIYA UNIT";262		x.add(option4);263	264		var option5 = document.createElement("option");265		option5.text = option5.value = "GODHARA UNIT";266		x.add(option5);267	268		var option6 = document.createElement("option");269		option6.text = option6.value = "BHARUCH UNIT";270		x.add(option6);271	}272	else if(val == "NAGPUR"){273		x.disabled= false;274	275		var option1 = document.createElement("option"); 276		option1.text = option1.value = "NAGPUR UNIT";277		x.add(option1);278	279		var option2 = document.createElement("option");280		option2.text = option2.value = "CHANDRAPUR UNIT";281		x.add(option2);282	283	}else if(val == "PUNE"){284		x.disabled= false;285	286		var option1 = document.createElement("option"); 287		option1.text = option1.value = "PUNE UNIT";288		x.add(option1);289	290		var option2 = document.createElement("option");291		option2.text = option2.value = "SATARA UNIT";292		x.add(option2);293	294	}else if(val == "KOLKATA"){295		x.disabled= false;296	297		var option1 = document.createElement("option"); 298		option1.text = option1.value = "KOLKATA UNIT";299		x.add(option1);300		301	}else if(val == "RAJKOT"){302		x.disabled= false;303	304		var option1 = document.createElement("option"); 305		option1.text = option1.value = "GANDHIDHAM UNIT";306		x.add(option1);307	308		var option2 = document.createElement("option");309		option2.text = option2.value = "VERAVAL UNIT";310		x.add(option2);311	312		var option3 = document.createElement("option");313		option3.text = option3.value = "PORBANDAR UNIT";314		x.add(option3);315	316		var option4 = document.createElement("option");317		option4.text = option4.value = "JUNAGADH UNIT";318		x.add(option4);319	320		var option5 = document.createElement("option");321		option5.text = option5.value = "RAJKOT UNIT";322		x.add(option5);323	324	}else if(val == "SURAT"){325		x.disabled= false;326	327		var option1 = document.createElement("option"); 328		option1.text = option1.value = "DL CABNET(SURAT) UNIT";329		x.add(option1);330	331		var option2 = document.createElement("option");332		option2.text = option2.value = "KAILASH NAGAR UNIT";333		x.add(option2);334	335		var option3 = document.createElement("option");336		option3.text = option3.value = "ADAJAN UNIT";337		x.add(option3);338	339		var option4 = document.createElement("option");340		option4.text = option4.value = "NAVSARI UNIT";341		x.add(option4);342	343		var option5 = document.createElement("option");344		option5.text = option5.value = "VALSAD UNIT";345		x.add(option5);346		347		var option6 = document.createElement("option");348		option6.text = option5.value = "MANCHARPURA UNIT";349		x.add(option6);350		351		var option7 = document.createElement("option");352		option7.text = option5.value = "RAJWADI UNIT";353		x.add(option7);354	355	}else if(val == "UDAIPUR"){356		x.disabled= false;357	358		var option1 = document.createElement("option"); 359		option1.text = option1.value = "UDAIPUR UNIT";360		x.add(option1);361		362	}else if(val == "OUT STATION"){363		x.disabled= false;364	365		var option1 = document.createElement("option"); 366		option1.text = option1.value = "OUT STATION UNIT";367		x.add(option1);368		369	}370}371function selectarea_bb(val){372	var x = document.getElementById("edit-submitted-area-broadband");373	//edit-submitted-select-city374	var length = x.options.length;375	376	var i = 0;377	for (i = 0; i < length; i++) {378	  x.options[i] = null;379	}380	381	for (j = 0; j < 10; j++) {382		var length = x.options.length;383		if(length != 0){384			for (i = 0; i < length; i++) {385				x.options[i] = null;386			}387		}388	}389	390	391	var option0 = document.createElement("option");392	option0.text = "Select Area";393	option0.value = "";394	x.add(option0);395	x.disabled= true;396	397	if(val == "AHMEDABAD"){398		x.disabled= false;399		var option1 = document.createElement("option");400		option1.text = option1.value = "KHAMBHATT UNIT";401		x.add(option1);402		403		var option2 = document.createElement("option");404		option2.text = option2.value = "MEHSANA UNIT";405		x.add(option2);406		407		var option3 = document.createElement("option");408		option3.text = option3.value = "MANINAGAR UNIT";409		x.add(option3);410		411		var option4 = document.createElement("option");412		option4.text = option4.value = "SABARMATI UNIT";413		x.add(option4);414		415		var option5 = document.createElement("option");416		option5.text = option5.value = "PALDI UNIT";417		x.add(option5);418		419		var option6 = document.createElement("option");420		option6.text = option6.value = "GANDHINAGAR UNIT";421		x.add(option6);422		423		var option7 = document.createElement("option");424		option7.text = option7.value = "C G ROAD UNIT";425		x.add(option7);426		427		var option8 = document.createElement("option");428		option8.text = option8.value = "BAPUNAGAR UNIT";429		x.add(option8);430		431		var option9 = document.createElement("option");432		option9.text = option9.value = "NADIAD UNIT";433		x.add(option9);434		435		var option10 = document.createElement("option");436		option10.text = option10.value = "HIMMATNAGAR UNIT";437		x.add(option10);438		439		var option11 = document.createElement("option");440		option11.text = option11.value = "ANAND UNIT";441		x.add(option11);442		443		var option12 = document.createElement("option");444		option12.text = option12.value = "MODASA UNIT";445		x.add(option12);446		447		var option13 = document.createElement("option");448		option13.text = option13.value = "KALOL UNIT";449		x.add(option13);450		451		var option14 = document.createElement("option");452		option14.text = option14.value = "SURENDRANAGAR UNIT";453		x.add(option14);454		455		var option15 = document.createElement("option");456		option15.text = option15.value = "PALANPUR UNIT";457		x.add(option15);458		459		var option16 = document.createElement("option");460		option16.text = option16.value = "VISION MANINAGAR UNIT";461		x.add(option16);462		463		var option17 = document.createElement("option");464		option17.text = option17.value = "VISION HAVELI UNIT";465		x.add(option17);466		467	}else if(val == "BARODA"){468		x.disabled= false;469	470		var option1 = document.createElement("option"); 471		option1.text = option1.value = "BARODA UNIT";472		x.add(option1);473	474		var option2 = document.createElement("option");475		option2.text = option2.value = "PRATAP NAGAR UNIT";476		x.add(option2);477	478		var option3 = document.createElement("option");479		option3.text = option3.value = "RACE COURSE UNIT";480		x.add(option3);481	482		var option4 = document.createElement("option");483		option4.text = option4.value = "WARASHIYA UNIT";484		x.add(option4);485	486		var option5 = document.createElement("option");487		option5.text = option5.value = "GODHARA UNIT";488		x.add(option5);489	490		var option6 = document.createElement("option");491		option6.text = option6.value = "BHARUCH UNIT";492		x.add(option6);493		494		var option7 = document.createElement("option"); 495		option7.text = option7.value = "BODELI UNIT";496		x.add(option7);497	498		var option8 = document.createElement("option");499		option8.text = option8.value = "DABHOI UNIT";500		x.add(option8);501	502		var option9 = document.createElement("option");503		option9.text = option9.value = "DAHOD UNIT";504		x.add(option9);505	506		var option10 = document.createElement("option");507		option10.text = option10.value = "HALOL UNIT";508		x.add(option10);509	510		var option11 = document.createElement("option");511		option11.text = option11.value = "KAALOL UNIT";512		x.add(option11);513	514		var option12 = document.createElement("option");515		option12.text = option12.value = "PADRA UNIT";516		x.add(option12);517	}518	else if(val == "NAGPUR"){519		x.disabled= false;520	521		var option1 = document.createElement("option"); 522		option1.text = option1.value = "NAGPUR UNIT";523		x.add(option1);524	525		var option2 = document.createElement("option");526		option2.text = option2.value = "CHANDRAPUR UNIT";527		x.add(option2);528	529	}else if(val == "PUNE"){530		x.disabled= false;531	532		var option1 = document.createElement("option"); 533		option1.text = option1.value = "PUNE UNIT";534		x.add(option1);535	536		var option2 = document.createElement("option");537		option2.text = option2.value = "SATARA UNIT";538		x.add(option2);539	540	}else if(val == "KOLKATA"){541		x.disabled= false;542	543		var option1 = document.createElement("option"); 544		option1.text = option1.value = "KOLKATA UNIT";545		x.add(option1);546		547	}else if(val == "RAJKOT"){548		x.disabled= false;549	550		var option1 = document.createElement("option"); 551		option1.text = option1.value = "GANDHIDHAM UNIT";552		x.add(option1);553	554		var option2 = document.createElement("option");555		option2.text = option2.value = "VERAVAL UNIT";556		x.add(option2);557	558		var option3 = document.createElement("option");559		option3.text = option3.value = "PORBANDAR UNIT";560		x.add(option3);561	562		var option4 = document.createElement("option");563		option4.text = option4.value = "JUNAGADH UNIT";564		x.add(option4);565	566		var option5 = document.createElement("option");567		option5.text = option5.value = "RAJKOT UNIT";568		x.add(option5);569		570		var option6 = document.createElement("option"); 571		option6.text = option6.value = "AMRELI UNIT";572		x.add(option6);573	574		var option7 = document.createElement("option");575		option7.text = option7.value = "JAMNAGAR UNIT";576		x.add(option7);577	578		var option8 = document.createElement("option");579		option8.text = option8.value = "KUTCH UNIT";580		x.add(option8);581	582		var option9 = document.createElement("option");583		option9.text = option9.value = "MUNDRA UNIT";584		x.add(option9);585	586		var option10 = document.createElement("option");587		option10.text = option10.value = "MORBI UNIT";588		x.add(option10);589	590	}else if(val == "SURAT"){591		x.disabled= false;592	593		var option1 = document.createElement("option"); 594		option1.text = option1.value = "DL CABNET(SURAT) UNIT";595		x.add(option1);596	597		var option2 = document.createElement("option");598		option2.text = option2.value = "KAILASH NAGAR UNIT";599		x.add(option2);600	601		var option3 = document.createElement("option");602		option3.text = option3.value = "ADAJAN UNIT";603		x.add(option3);604	605		var option4 = document.createElement("option");606		option4.text = option4.value = "NAVSARI UNIT";607		x.add(option4);608	609		var option5 = document.createElement("option");610		option5.text = option5.value = "VALSAD UNIT";611		x.add(option5);612		613		var option6 = document.createElement("option");614		option6.text = option5.value = "MANCHARPURA UNIT";615		x.add(option6);616		617		var option7 = document.createElement("option");618		option7.text = option5.value = "RAJWADI UNIT";619		x.add(option7);620	621	}else if(val == "UDAIPUR"){622		x.disabled= false;623	624		var option1 = document.createElement("option"); 625		option1.text = option1.value = "UDAIPUR UNIT";626		x.add(option1);627		628	}else if(val == "OUT STATION"){629		x.disabled= false;630	631		var option1 = document.createElement("option"); 632		option1.text = option1.value = "OUT STATION UNIT";633		x.add(option1);634		635	}else if(val == "INDORE"){636		x.disabled= false;637	638		var option1 = document.createElement("option"); 639		option1.text = option1.value = "INDORE UNIT";640		x.add(option1);641		642	}else if(val == "SOLAPUR"){643		x.disabled= false;644	645		var option1 = document.createElement("option"); 646		option1.text = option1.value = "SOLAPUR UNIT";647		x.add(option1);648		649	}else if(val == "VISAKHAPATNAM"){650		x.disabled= false;651	652		var option1 = document.createElement("option"); 653		option1.text = option1.value = "VISAKHAPATNAM UNIT";654		x.add(option1);655		656	}else if(val == "ASSAM"){657		x.disabled= false;658	659		var option1 = document.createElement("option"); 660		option1.text = option1.value = "GUWAHATI UNIT";661		x.add(option1);662		var option2 = document.createElement("option");663		option2.text = option2.value = "DIBRUGARH UNIT";664		x.add(option2);665	666		var option3 = document.createElement("option");667		option3.text = option3.value = "JORHAT UNIT";668		x.add(option3);669		670	}else if(val == "PATNA"){671		x.disabled= false;672	673		var option1 = document.createElement("option"); 674		option1.text = option1.value = "PATNA UNIT";675		x.add(option1);676		var option2 = document.createElement("option");677		option2.text = option2.value = "GAYA UNIT";678		x.add(option2);679			680	}else if(val == "RANCHI"){681		x.disabled= false;682	683		var option1 = document.createElement("option"); 684		option1.text = option1.value = "RANCHI UNIT";685		x.add(option1);686		var option2 = document.createElement("option");687		option2.text = option2.value = "DHANBAD UNIT";688		x.add(option2);689			690	}691	692}693function city_add(url){694	var a = document.getElementById('area_selection');695	//session.setAttribute('test_variable','value');696	//return false;697	if(a != null){698		window.location.assign(url+"/"+a.value);699	}700}

Full Screen

Full Screen

CesiumInspector.js

Source:CesiumInspector.js Github

copy

Full Screen

...37        if (!defined(scene)) {38            throw new DeveloperError('scene is required.');39        }40        container = getElement(container);41        var performanceContainer = document.createElement('div');42        var viewModel = new CesiumInspectorViewModel(scene, performanceContainer);43        this._viewModel = viewModel;44        this._container = container;45        var element = document.createElement('div');46        this._element = element;47        var text = document.createElement('div');48        text.textContent = 'Cesium Inspector';49        text.className = 'cesium-cesiumInspector-button';50        text.setAttribute('data-bind', 'click: toggleDropDown');51        element.appendChild(text);52        element.className = 'cesium-cesiumInspector';53        element.setAttribute('data-bind', 'css: { "cesium-cesiumInspector-visible" : dropDownVisible, "cesium-cesiumInspector-hidden" : !dropDownVisible }');54        container.appendChild(this._element);55        var panel = document.createElement('div');56        this._panel = panel;57        panel.className = 'cesium-cesiumInspector-dropDown';58        element.appendChild(panel);59        // General60        var general = document.createElement('div');61        general.className = 'cesium-cesiumInspector-sectionHeader';62        var plus = document.createElement('span');63        plus.className = 'cesium-cesiumInspector-toggleSwitch';64        plus.setAttribute('data-bind', 'click: toggleGeneral, text: generalSwitchText');65        general.appendChild(plus);66        general.appendChild(document.createTextNode('General'));67        panel.appendChild(general);68        var generalSection = document.createElement('div');69        generalSection.className = 'cesium-cesiumInspector-section';70        generalSection.setAttribute('data-bind', 'css: {"cesium-cesiumInspector-show" : generalVisible, "cesium-cesiumInspector-hide" : !generalVisible}');71        panel.appendChild(generalSection);72        var debugShowFrustums = document.createElement('div');73        generalSection.appendChild(debugShowFrustums);74        var frustumStats = document.createElement('div');75        frustumStats.className = 'cesium-cesiumInspector-frustumStats';76        frustumStats.setAttribute('data-bind', 'css: {"cesium-cesiumInspector-show" : frustums, "cesium-cesiumInspector-hide" : !frustums}, html: frustumStatisticText');77        var frustumsCheckbox = document.createElement('input');78        frustumsCheckbox.type = 'checkbox';79        frustumsCheckbox.setAttribute('data-bind', 'checked: frustums, click: showFrustums');80        debugShowFrustums.appendChild(frustumsCheckbox);81        debugShowFrustums.appendChild(document.createTextNode('Show Frustums'));82        debugShowFrustums.appendChild(frustumStats);83        var performanceDisplay = document.createElement('div');84        generalSection.appendChild(performanceDisplay);85        var pdCheckbox = document.createElement('input');86        pdCheckbox.type = 'checkbox';87        pdCheckbox.setAttribute('data-bind', 'checked: performance, click: showPerformance');88        performanceDisplay.appendChild(pdCheckbox);89        performanceDisplay.appendChild(document.createTextNode('Performance Display'));90        performanceContainer.className = 'cesium-cesiumInspector-performanceDisplay';91        generalSection.appendChild(performanceContainer);92        // Primitives93        var prim = document.createElement('div');94        prim.className = 'cesium-cesiumInspector-sectionHeader';95        plus = document.createElement('span');96        plus.className = 'cesium-cesiumInspector-toggleSwitch';97        plus.setAttribute('data-bind', 'click: togglePrimitives, text: primitivesSwitchText');98        prim.appendChild(plus);99        prim.appendChild(document.createTextNode('Primitives'));100        panel.appendChild(prim);101        var primitivesSection = document.createElement('div');102        primitivesSection.className = 'cesium-cesiumInspector-section';103        primitivesSection.setAttribute('data-bind', 'css: {"cesium-cesiumInspector-show" : primitivesVisible, "cesium-cesiumInspector-hide" : !primitivesVisible}');104        panel.appendChild(primitivesSection);105        var pickPrimRequired = document.createElement('div');106        pickPrimRequired.className = 'cesium-cesiumInspector-pickSection';107        primitivesSection.appendChild(pickPrimRequired);108        var pickPrimitiveButton = document.createElement('input');109        pickPrimitiveButton.type = 'button';110        pickPrimitiveButton.value = 'Pick a primitive';111        pickPrimitiveButton.className = 'cesium-cesiumInspector-pickButton';112        pickPrimitiveButton.setAttribute('data-bind', 'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');113        var buttonWrap = document.createElement('div');114        buttonWrap.className = 'cesium-cesiumInspector-center';115        buttonWrap.appendChild(pickPrimitiveButton);116        pickPrimRequired.appendChild(buttonWrap);117        var debugSphere = document.createElement('div');118        pickPrimRequired.appendChild(debugSphere);119        var bsCheckbox = document.createElement('input');120        bsCheckbox.type = 'checkbox';121        bsCheckbox.setAttribute('data-bind', 'checked: primitiveBoundingSphere, click: showPrimitiveBoundingSphere, enable: hasPickedPrimitive');122        debugSphere.appendChild(bsCheckbox);123        debugSphere.appendChild(document.createTextNode('Show bounding sphere'));124        var refFrame = document.createElement('div');125        pickPrimRequired.appendChild(refFrame);126        var rfCheckbox = document.createElement('input');127        rfCheckbox.type = 'checkbox';128        rfCheckbox.setAttribute('data-bind', 'checked: primitiveReferenceFrame, click: showPrimitiveReferenceFrame, enable: hasPickedPrimitive');129        refFrame.appendChild(rfCheckbox);130        refFrame.appendChild(document.createTextNode('Show reference frame'));131        var primitiveOnly = document.createElement('div');132        this._primitiveOnly = primitiveOnly;133        pickPrimRequired.appendChild(primitiveOnly);134        var primitiveOnlyCheckbox = document.createElement('input');135        primitiveOnlyCheckbox.type = 'checkbox';136        primitiveOnlyCheckbox.setAttribute('data-bind', 'checked: filterPrimitive, click: doFilterPrimitive, enable: hasPickedPrimitive');137        primitiveOnly.appendChild(primitiveOnlyCheckbox);138        primitiveOnly.appendChild(document.createTextNode('Show only selected'));139        // Terrain140        var terrain = document.createElement('div');141        terrain.className = 'cesium-cesiumInspector-sectionHeader';142        plus = document.createElement('span');143        plus.className = 'cesium-cesiumInspector-toggleSwitch';144        plus.setAttribute('data-bind', 'click: toggleTerrain, text: terrainSwitchText');145        terrain.appendChild(plus);146        terrain.appendChild(document.createTextNode('Terrain'));147        panel.appendChild(terrain);148        var terrainSection = document.createElement('div');149        terrainSection.className = 'cesium-cesiumInspector-section';150        terrainSection.setAttribute('data-bind', 'css: {"cesium-cesiumInspector-show" : terrainVisible, "cesium-cesiumInspector-hide" : !terrainVisible}');151        panel.appendChild(terrainSection);152        var pickTileRequired = document.createElement('div');153        pickTileRequired.className = 'cesium-cesiumInspector-pickSection';154        terrainSection.appendChild(pickTileRequired);155        var pickTileButton = document.createElement('input');156        pickTileButton.type = 'button';157        pickTileButton.value = 'Pick a tile';158        pickTileButton.className = 'cesium-cesiumInspector-pickButton';159        pickTileButton.setAttribute('data-bind', 'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickTileActive}, click: pickTile');160        buttonWrap = document.createElement('div');161        buttonWrap.appendChild(pickTileButton);162        buttonWrap.className = 'cesium-cesiumInspector-center';163        pickTileRequired.appendChild(buttonWrap);164        var tileInfo = document.createElement('div');165        pickTileRequired.appendChild(tileInfo);166        var parentTile = document.createElement('input');167        parentTile.type = 'button';168        parentTile.value = 'Parent';169        parentTile.className = 'cesium-cesiumInspector-pickButton';170        parentTile.setAttribute('data-bind', 'click: selectParent');171        var nwTile = document.createElement('input');172        nwTile.type = 'button';173        nwTile.value = 'NW';174        nwTile.className = 'cesium-cesiumInspector-pickButton';175        nwTile.setAttribute('data-bind', 'click: selectNW');176        var neTile = document.createElement('input');177        neTile.type = 'button';178        neTile.value = 'NE';179        neTile.className = 'cesium-cesiumInspector-pickButton';180        neTile.setAttribute('data-bind', 'click: selectNE');181        var swTile = document.createElement('input');182        swTile.type = 'button';183        swTile.value = 'SW';184        swTile.className = 'cesium-cesiumInspector-pickButton';185        swTile.setAttribute('data-bind', 'click: selectSW');186        var seTile = document.createElement('input');187        seTile.type = 'button';188        seTile.value = 'SE';189        seTile.className = 'cesium-cesiumInspector-pickButton';190        seTile.setAttribute('data-bind', 'click: selectSE');191        var tileText = document.createElement('div');192        tileText.className = 'cesium-cesiumInspector-tileText';193        tileInfo.className = 'cesium-cesiumInspector-frustumStats';194        tileInfo.appendChild(tileText);195        tileInfo.setAttribute('data-bind', 'css: {"cesium-cesiumInspector-show" : hasPickedTile, "cesium-cesiumInspector-hide" : !hasPickedTile}');196        tileText.setAttribute('data-bind', 'html: tileText');197        var relativeText = document.createElement('div');198        relativeText.className = 'cesium-cesiumInspector-relativeText';199        relativeText.textContent = 'Select relative:';200        tileInfo.appendChild(relativeText);201        var table = document.createElement('table');202        var tr1 = document.createElement('tr');203        var tr2 = document.createElement('tr');204        var td1 = document.createElement('td');205        td1.appendChild(parentTile);206        var td2 = document.createElement('td');207        td2.appendChild(nwTile);208        var td3 = document.createElement('td');209        td3.appendChild(neTile);210        tr1.appendChild(td1);211        tr1.appendChild(td2);212        tr1.appendChild(td3);213        var td4 = document.createElement('td');214        var td5 = document.createElement('td');215        td5.appendChild(swTile);216        var td6 = document.createElement('td');217        td6.appendChild(seTile);218        tr2.appendChild(td4);219        tr2.appendChild(td5);220        tr2.appendChild(td6);221        table.appendChild(tr1);222        table.appendChild(tr2);223        tileInfo.appendChild(table);224        var tileBoundingSphere = document.createElement('div');225        pickTileRequired.appendChild(tileBoundingSphere);226        var tbsCheck = document.createElement('input');227        tbsCheck.type = 'checkbox';228        tbsCheck.setAttribute('data-bind', 'checked: tileBoundingSphere, enable: hasPickedTile, click: showTileBoundingSphere');229        tileBoundingSphere.appendChild(tbsCheck);230        tileBoundingSphere.appendChild(document.createTextNode('Show bounding sphere'));231        var renderTile = document.createElement('div');232        pickTileRequired.appendChild(renderTile);233        var rCheck = document.createElement('input');234        rCheck.type = 'checkbox';235        rCheck.setAttribute('data-bind', 'checked: filterTile, enable: hasPickedTile, click: doFilterTile');236        renderTile.appendChild(rCheck);237        renderTile.appendChild(document.createTextNode('Show only selected'));238        var wireframe = document.createElement('div');239        terrainSection.appendChild(wireframe);240        var wCheckbox = document.createElement('input');241        wCheckbox.type = 'checkbox';242        wCheckbox.setAttribute('data-bind', 'checked: wireframe, click: showWireframe');243        wireframe.appendChild(wCheckbox);244        wireframe.appendChild(document.createTextNode('Wireframe'));245        var suspendUpdates = document.createElement('div');246        terrainSection.appendChild(suspendUpdates);247        var upCheckbox = document.createElement('input');248        upCheckbox.type = 'checkbox';249        upCheckbox.setAttribute('data-bind', 'checked: suspendUpdates, click: doSuspendUpdates');250        suspendUpdates.appendChild(upCheckbox);251        suspendUpdates.appendChild(document.createTextNode('Suspend LOD update'));252        var tileCoords = document.createElement('div');253        terrainSection.appendChild(tileCoords);254        var coordCheck = document.createElement('input');255        coordCheck.type = 'checkbox';256        coordCheck.setAttribute('data-bind', 'checked: tileCoordinates, click: showTileCoordinates');257        tileCoords.appendChild(coordCheck);258        tileCoords.appendChild(document.createTextNode('Show tile coordinates'));259        knockout.applyBindings(viewModel, this._element);260    };261    defineProperties(CesiumInspector.prototype, {262        /**263         * Gets the parent container.264         * @memberof CesiumInspector.prototype265         *266         * @type {Element}267         */268        container : {...

Full Screen

Full Screen

enums.js

Source:enums.js Github

copy

Full Screen

...10    }11    clear(oj);12    if(selv==0)13    {14        aOption = document.createElement('OPTION');15        aOption.text = '具体地区';16        aOption.value = '0';17        oj.options.add(aOption);18        return;19    }20    else21    {22        aOption = document.createElement('OPTION');23        aOption.text = '具体地区';24        aOption.value = '0';25        oj.options.add(aOption);26    }27    var str = '';28    for(i=selv+1; i < maxv; i++)29    {30        if(!em_nativeplaces[i]) continue;31        aOption = document.createElement('OPTION');32        aOption.text = em_nativeplaces[i];33        aOption.value = i;34        oj.options.add(aOption);35    }36}37//子类改变事件38function ChangeSon()39{40    /*41    var emname = this.name.replace('_son', '');42    var topSelObj = document.getElementById(emname+'_top');43    if(this.options[this.selectedIndex].value==0) {44        document.getElementById('hidden_'+emname).value = topSelObj.options[topSelObj.selectedIndex].value;45    }46    else {47        document.getElementById('hidden_'+emname).value = this.options[this.selectedIndex].value;48    }49    */50    // 由于支持3级联动,所以这里需要对自己改变进行重构51    var emname = this.name.replace('_son', '');52    // alert(emname);53    if( document.getElementById(emname+'_sec') )54    {55        var oj = document.getElementById(emname + '_sec');56    }57    else58    {59        var oj  = document.createElement('select');60        oj.name = emname + '_sec';61        oj.id   = emname + '_sec';62        oj.onchange = ChangeSec;63    }64    var v = this.options[this.selectedIndex].value;65    document.getElementById('hidden_'+emname).value = v;66    var newobj = oj.options;67    var selarr = eval('em_'+emname+'s');68    var selv = parseInt(v);69    var maxv = parseInt(v) + 0.5;70    // alert(maxv);71    i = 0;72    while(newobj && newobj.length > 0) oj.remove(0);73    clear(oj);74    if(selv == 0)75    {76        aOption = document.createElement('OPTION');77        aOption.text = '请选择..';78        aOption.value = '0';79        oj.options.add(aOption);80        return;81    }82    else83    {84        aOption = document.createElement('OPTION');85        aOption.text = '请选择..';86        aOption.value = '0';87        oj.options.add(aOption);88    }89    var str = '';90    var j=0;91    for(i = selv + 0.001; i < maxv; i = FloatAdd(i, 0.001))92    {93        if(!selarr[i]) continue;94        aOption = document.createElement('OPTION');95        aOption.text = selarr[i];96        aOption.value = i;97        oj.options.add(aOption);98        j++;99    }100    if(j > 0) document.getElementById('span_'+emname+'_sec').appendChild(oj);101    else document.getElementById('span_'+emname+'_sec').innerHTML = "";102}103// 改变第三级的事件104function ChangeSec()105{106    var emname = this.name.replace('_sec', '');107    var topSelObj = document.getElementById(emname+'_top');108    if(this.options[this.selectedIndex].value==0) {109        document.getElementById('hidden_'+emname).value = topSelObj.options[topSelObj.selectedIndex].value;110    }111    else {112        document.getElementById('hidden_'+emname).value = this.options[this.selectedIndex].value;113    }114}115//顶级类改变事件116function selNextSon()117{118    var emname = this.name.replace('_top', '');119    if( document.getElementById(emname+'_son') )120    {121        var oj = document.getElementById(emname + '_son');122    }123    else124    {125        var oj  = document.createElement('select');126        oj.name = emname + '_son';127        oj.id   = emname + '_son';128        oj.onchange = ChangeSon;129    }130    var v = this.options[this.selectedIndex].value;131    document.getElementById('hidden_'+emname).value = v;132    var newobj = oj.options;133    var selarr = eval('em_'+emname+'s');134    var selv = parseInt(v);135    var maxv = parseInt(v) + 500;136    while(newobj && newobj.length > 0) oj.remove(0);137    clear(oj);138    if(selv==0)139    {140        aOption = document.createElement('OPTION');141        aOption.text = '请选择..';142        aOption.value = '0';143        oj.options.add(aOption);144        return;145    }146    else147    {148        aOption = document.createElement('OPTION');149        aOption.text = '请选择..';150        aOption.value = '0';151        oj.options.add(aOption);152    }153    var str = '';154    for(i=selv+1; i < maxv; i++)155    {156        if(!selarr[i]) continue;157        aOption = document.createElement('OPTION');158        aOption.text = selarr[i];159        aOption.value = i;160        oj.options.add(aOption);161    }162    document.getElementById('span_'+emname+'_son').appendChild(oj);163}164// 根据数组生成多级联动菜单165function MakeTopSelect(emname, selvalue)166{167    var selectFormHtml = '';168    var aOption = null;169    var selObj = document.createElement("select");170    selObj.name = emname + '_top';171    selObj.id   = emname + '_top';172    selObj.onchange = selNextSon;173    var selarr = eval('em_'+emname+'s');174    // alert(selarr[1002.2]);175    var topvalue = 0;176    var sonvalue = 0;177    var secvalue = 0;178    179    aOption = document.createElement('OPTION');180    aOption.text = '请选择..';181    aOption.value = 0;182    selObj.options.add(aOption);183    184    // alert(selvalue);185    if(selvalue % 500 == 0 ) 186    {187        topvalue = selvalue;188    }189    // 如果是小数,则依次取出顶级数值,二级数值以及三级数值190    else if(!!(selvalue % 1))191    {192        secvalue = selvalue;193        sonvalue = Math.floor(selvalue);194        topvalue = sonvalue - (sonvalue % 500);195        // alert(secvalue);196    }197    else {198        sonvalue = selvalue;199        topvalue = selvalue - (selvalue % 500);200    }201    202    for(i = 500; i <= selarr.length; i += 500)203    {204        if(!selarr[i]) continue;205        aOption = document.createElement('OPTION');206        if(i == topvalue) {207            aOption = document.createElement('OPTION');208            aOption.text = selarr[i];209            aOption.value = i;210            selObj.options.add(aOption);            211            aOption.selected = true;212        }213        else {214            aOption = document.createElement('OPTION');215            aOption.text = selarr[i];216            aOption.value = i;217            selObj.options.add(aOption);218        }219    }220    document.getElementById('span_'+emname).appendChild(selObj);221    222    //如果子类存在值,创建子类223    //if(sonvalue > 0 || topvalue > 0) {224    selObj = document.createElement("select");225    selObj.name = emname + '_son';226    selObj.id   = emname + '_son';227    selObj.onchange = ChangeSon;228    aOption = document.createElement('OPTION');229    aOption.text = '请选择..';230    aOption.value = 0;231    selObj.options.add(aOption);232    233    //当大类有值输出子类234    if(topvalue > 0)235    {236        var selv = topvalue;237        var maxv = parseInt(topvalue) + 500;238        for(i = selv + 1; i < maxv; i++)239        {240            if(!selarr[i]) continue;241            aOption = document.createElement('OPTION');242            if(i == sonvalue) {243                aOption = document.createElement('OPTION');244                aOption.text = selarr[i];245                aOption.value = i;246                selObj.options.add(aOption);247                aOption.selected = true;248            }249            else {250                aOption = document.createElement('OPTION');251                aOption.text = selarr[i];252                aOption.value = i;253                selObj.options.add(aOption);254            }255        }256    }257    document.getElementById('span_'+emname+'_son').appendChild(selObj);258    259    // 若存在第三级则创建260    if(secvalue > 0)261    {262        selObj = document.createElement("select");263        selObj.name = emname + '_sec';264        selObj.id   = emname + '_sec';265        selObj.onchange = ChangeSec;266        aOption = document.createElement('OPTION');267        aOption.text = '请选择..';268        aOption.value = 0;269        selObj.options.add(aOption);270        271        var selv = sonvalue;272        var maxv = parseInt(sonvalue) + 0.5;273        // alert(maxv);274        i = 0;275        for(i = selv + 0.001; i < maxv; i = FloatAdd(i, 0.001))276        {277            if(!selarr[i]) continue;278            aOption = document.createElement('OPTION');279            if(i == secvalue) {280                aOption = document.createElement('OPTION');281                aOption.text = selarr[i];282                aOption.value = i;283                selObj.options.add(aOption);284                aOption.selected = true;285            }286            else {287                aOption = document.createElement('OPTION');288                aOption.text = selarr[i];289                aOption.value = i;290                selObj.options.add(aOption);291            }292        }293    }294    document.getElementById('span_'+emname+'_sec').appendChild(selObj);295}296// 两个小数相加进度计算297function FloatAdd(arg1, arg2)298{299    var r1,r2,m;300    try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0}301    try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0}...

Full Screen

Full Screen

procesos.js

Source:procesos.js Github

copy

Full Screen

...17function mostrarTablaResumen(estadisticas){18    19    let tbResumen = document.getElementById("tabla_resumen");20    limpiar(tbResumen);21    let tb = document.createElement("table");22    let tbl = document.createElement("tbody");23    let enc = document.createElement("tr");24    let t1 = document.createElement("th");25    let txtt1 = document.createTextNode("Descripción");26    27    t1.appendChild(txtt1);28    enc.appendChild(t1);29    t1 = document.createElement("th");30    txtt1 = document.createTextNode("Valor");31    t1.appendChild(txtt1);32    enc.appendChild(t1);33    tbl.appendChild(enc);34    enc = document.createElement("tr");35    t1 = document.createElement("td");36    txtt1 = document.createTextNode("Numero total de Procesos:");37    t1.appendChild(txtt1);38    enc.appendChild(t1);39    t1 = document.createElement("td");40    txtt1 = document.createTextNode(estadisticas.numproc);41    t1.appendChild(txtt1);42    enc.appendChild(t1);43    tbl.appendChild(enc)44    enc = document.createElement("tr");45    t1 = document.createElement("td");46    txtt1 = document.createTextNode("Procesos en Ejecución:");47    t1.appendChild(txtt1);48    enc.appendChild(t1);49    t1 = document.createElement("td");50    txtt1 = document.createTextNode(estadisticas.proc_e);51    t1.appendChild(txtt1);52    enc.appendChild(t1);53    tbl.appendChild(enc)54    enc = document.createElement("tr");55    t1 = document.createElement("td");56    txtt1 = document.createTextNode("Procesos Suspendidos:");57    t1.appendChild(txtt1);58    enc.appendChild(t1);59    tbl.appendChild(enc)60    t1 = document.createElement("td");61    txtt1 = document.createTextNode(estadisticas.proc_s);62    t1.appendChild(txtt1);63    enc.appendChild(t1);64    enc = document.createElement("tr");65    t1 = document.createElement("td");66    txtt1 = document.createTextNode("Procesos Detenidos: ");67    t1.appendChild(txtt1);68    enc.appendChild(t1);69    tbl.appendChild(enc)70    t1 = document.createElement("td");71    txtt1 = document.createTextNode(estadisticas.proc_d);72    t1.appendChild(txtt1);73    enc.appendChild(t1);74    enc = document.createElement("tr");75    t1 = document.createElement("td");76    txtt1 = document.createTextNode("Procesos Zombis: ");77    t1.appendChild(txtt1);78    enc.appendChild(t1);79    t1 = document.createElement("td");80    txtt1 = document.createTextNode(estadisticas.proc_z);81    t1.appendChild(txtt1);82    enc.appendChild(t1);83    tbl.appendChild(enc);84    tb.appendChild(tbl);85    tbResumen.appendChild(tb);86    tb.setAttribute("class", "table table-responsive table-striped")87}88function mostrarProcesos(procesos){89    let tbprocs = document.getElementById("tabla_procesos");90    limpiar(tbprocs);91    let tb = document.createElement("table");92    let tbl = document.createElement("tbody");93    let enc = document.createElement("tr");94    let t1 = document.createElement("th");95    let txtt1 = document.createTextNode("PID");96    t1.appendChild(txtt1);97    enc.appendChild(t1);98    t1 = document.createElement("th");99    txtt1 = document.createTextNode("Usuario");100    t1.appendChild(txtt1)101    enc.appendChild(t1);102    t1 = document.createElement("th");103    txtt1 = document.createTextNode("Estado");104    t1.appendChild(txtt1);105    enc.appendChild(t1);106    tbl.append(enc);107    t1 = document.createElement("th");108    txtt1 = document.createTextNode("%RAM");109    t1.appendChild(txtt1);110    enc.appendChild(t1);111    tbl.append(enc);112    t1 = document.createElement("th");113    txtt1 = document.createTextNode("Nombre");114    t1.appendChild(txtt1);115    enc.appendChild(t1);116    tbl.append(enc);117    for(let i = 0; i < procesos.length; i++){118        let proc = procesos[i];119        enc = document.createElement("tr");120        t1 = document.createElement("td");121        txtt1 = document.createTextNode(proc.pid);122        t1.appendChild(txtt1);123        enc.appendChild(t1);124        t1 = document.createElement("td");125        txtt1 = document.createTextNode(proc.usuario);126        t1.appendChild(txtt1);127        enc.appendChild(t1);128        t1 = document.createElement("td");129        txtt1 = document.createTextNode(proc.estado);130        t1.appendChild(txtt1);131        enc.appendChild(t1);132        t1 = document.createElement("td");133        txtt1 = document.createTextNode(proc.pram);134        t1.appendChild(txtt1);135        enc.appendChild(t1);136        t1 = document.createElement("td");137        txtt1 = document.createTextNode(proc.nombre);138        t1.appendChild(txtt1);139        enc.appendChild(t1);140        t1 = document.createElement("td");141        txtt1 = document.createElement("button");142        txtt1.setAttribute("class", "btn btn-sm btn-circle btn-danger");143        txtt1.setAttribute("onclick", "matarProceso(" + proc.pid + ");");144        let ti = document.createElement('i');145        ti.setAttribute("class", "fas fa-stop")146        txtt1.appendChild(ti)147        t1.appendChild(txtt1);148        enc.appendChild(t1);149        tbl.append(enc);150    }151    tb.setAttribute("class", "table table-resposive table-striped");152    tb.append(tbl);153    tbprocs.append(tb);154}155function matarProceso(id){156    $.get("/kill/" + id,{},recuperarInfo)157}158$(document).ready(recuperarInfo)

Full Screen

Full Screen

ieh5fix.js

Source:ieh5fix.js Github

copy

Full Screen

1document.createElement("article");2document.createElement("footer");3document.createElement("header");4document.createElement("section");5document.createElement("nav");6document.createElement("address");7document.createElement("abbr");8document.createElement("acronym");9document.createElement("applet");10document.createElement("area");11document.createElement("aside");12document.createElement("audio");13document.createElement("base");14document.createElement("basefont");15document.createElement("bdo");16document.createElement("big");17document.createElement("blockquote");18document.createElement("button");19document.createElement("canvas");20document.createElement("caption");21document.createElement("center");22document.createElement("cite");23document.createElement("code");24document.createElement("col");25document.createElement("colgroup");26document.createElement("command");27document.createElement("datalist");28document.createElement("dd");29document.createElement("del");3031document.createElement("menu");32document.createElement("figure");33document.createElement("details");34document.createElement("dfn");35document.createElement("dir");36document.createElement("div");37document.createElement("dl");38document.createElement("dt");39document.createElement("em");40document.createElement("embed");41document.createElement("fieldset");42document.createElement("figcaption");43document.createElement("figure");44document.createElement("font");45document.createElement("form");46document.createElement("frame");47484950document.createElement("frameset");51document.createElement("h1");52 document.createElement("h6");53document.createElement("head");54document.createElement("hgroup");55document.createElement("hr");56document.createElement("html");57document.createElement("i");58document.createElement("iframe");59document.createElement("img");60document.createElement("input");616263document.createElement("ins");64document.createElement("keygen");65document.createElement("kbd");66document.createElement("label");67document.createElement("legend");68document.createElement("li");69document.createElement("link");70document.createElement("map");71document.createElement("mark");72document.createElement("menu");73document.createElement("meta");74document.createElement("meter");75document.createElement("noframes");767778document.createElement("noscript");79document.createElement("object");80document.createElement("ol");81document.createElement("optgroup");82document.createElement("option");83document.createElement("output");84document.createElement("p");85document.createElement("param");86document.createElement("pre");87document.createElement("progress");88document.createElement("q");89document.createElement("rp");90document.createElement("rt");91document.createElement("ruby");92939495document.createElement("s");96document.createElement("samp");97document.createElement("script");98document.createElement("select");99document.createElement("small");100document.createElement("source");101document.createElement("span");102document.createElement("strike");103document.createElement("strong");104document.createElement("style");105document.createElement("sub");106document.createElement("summary");107document.createElement("sup");108document.createElement("table");109document.createElement("tbody");110111112document.createElement("td");113document.createElement("textarea");114document.createElement("tfoot");115document.createElement("th");116document.createElement("thead");117document.createElement("time");118document.createElement("title");119document.createElement("tr");120document.createElement("tt");121document.createElement("u");122document.createElement("ul");123document.createElement("var");124document.createElement("video");125document.createElement("wbr");126document.createElement("xmp");
...

Full Screen

Full Screen

sitemap.js

Source:sitemap.js Github

copy

Full Screen

1  function buildMap(x){2            var createList = document.createElement("ul");3            4            var body = document.getElementById(x);5            body.appendChild(createList);6            7            var list1 = document.createElement("li");8            createList.appendChild(list1);9            var a1 = document.createElement("a");10            a1.textContent = "Main";11            a1.href = "index.html";12            list1.appendChild(a1);13            14            var list2 = document.createElement("li");15            createList.appendChild(list2);16            var a2 = document.createElement("a")17            a2.textContent = "About Me";18            a2.href = "bio.html";19            list2.appendChild(a2);20            21            var list3 = document.createElement("li");22            createList.appendChild(list3);23            list3.textContent = "Assignments";24            25            var createlist2 = document.createElement("ul");26            list3.appendChild(createlist2);27    28            29            var list4 = document.createElement("li");30            createlist2.appendChild(list4);31            var a4 = document.createElement("a")32            a4.textContent = "PopUp";33            a4.href = "popup.html"34            list4.appendChild(a4);35 36            var list5 = document.createElement("li");37            createlist2.appendChild(list5);38            var a5 = document.createElement("a")39            a5.textContent = "Game";40            a5.href = "game.html"41            list5.appendChild(a5);42            43            var list7 = document.createElement("li");44            createlist2.appendChild(list7);45            var a7 = document.createElement("a")46            a7.textContent = "Test HTML";47            a7.href = "htmltest.html"48            list7.appendChild(a7);49            50            var list8 = document.createElement("li");51            createlist2.appendChild(list8);52            var a8 = document.createElement("a")53            a8.textContent = "To Do List";54            a8.href = "todolist.html"55            list8.appendChild(a8);56            57            var list10 = document.createElement("li");58            createlist2.appendChild(list10);59            var a10 = document.createElement("a")60            a10.textContent = "Tic Tac Toe";61            a10.href = "tictactoe.html"62            list10.appendChild(a10);63            64            var list11 = document.createElement("li");65            createlist2.appendChild(list11);66            var a11 = document.createElement("a")67            a11.textContent = "Multipilication Table";68            a11.href = "multitable.html"69            list11.appendChild(a11);70            ...

Full Screen

Full Screen

html5.js

Source:html5.js Github

copy

Full Screen

...4// parsed before pretty much anything happens.5// Plus, IE does not behave otherwise. The cost of being progressive...6// -----------------------------------------------------------------------------78document.createElement("article");9document.createElement("aside");10document.createElement("audio");11document.createElement("canvas");12document.createElement("command");13document.createElement("datalist");14document.createElement("details");15document.createElement("embed");16document.createElement("figcaption");17document.createElement("figure");18document.createElement("footer");19document.createElement("header");20document.createElement("hgroup");21document.createElement("keygen");22document.createElement("mark");23document.createElement("meter");24document.createElement("nav");25document.createElement("output");26document.createElement("progress");27document.createElement("rp");28document.createElement("rt");29document.createElement("ruby");30document.createElement("section");31document.createElement("source");32document.createElement("summary");33document.createElement("time");
...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1describe('My First Test', function() {2  it('Does not do much!', function() {3    cy.contains('type').click()4    cy.url().should('include', '/commands/actions')5    cy.get('.action-email')6      .type('

Full Screen

Using AI Code Generation

copy

Full Screen

1describe('My First Test', function() {2  it('Does not do much!', function() {3    cy.contains('type').click()4    cy.url().should('include', '/commands/actions')5    cy.get('.action-email')6      .type('

Full Screen

Using AI Code Generation

copy

Full Screen

1const createNode = (tag) => {2    return cy.window().then((win) => {3        return win.document.createElement(tag)4    })5}6const appendToBody = (node) => {7    return cy.get('body').then((body) => {8        body.append(node)9    })10}11const createNodeAndAppend = (tag) => {12    return cy.window().then((win) => {13        const $el = Cypress.$(win.document.createElement(tag))14        cy.get('body').append($el)15    })16}17describe('Test', () => {18    it('test', () => {19        createNode('div').then((node) => {20            appendToBody(node)21        })22        createNodeAndAppend('div')23    })24})25Cypress.Commands.add('createNode', (tag) => {26    return cy.window().then((win) => {27        return win.document.createElement(tag)28    })29})30Cypress.Commands.add('appendToBody', (node) => {31    return cy.get('body').then((body) => {32        body.append(node)33    })34})35Cypress.Commands.add('createNodeAndAppend', (tag) => {36    return cy.window().then((win) => {37        const $el = Cypress.$(win.document.createElement(tag))38        cy.get('body').append($el)39    })40})41describe('Test', () => {42    it('test', () => {43        cy.createNode('div').then((node) => {44            cy.appendToBody(node)45        })46        cy.createNodeAndAppend('div')47    })48})49Cypress.Commands.add('createNode', (tag) => {50    return cy.window().then((win) => {51        return win.document.createElement(tag)52    })53})54Cypress.Commands.add('appendToBody', (node) => {55    return cy.get('body').then((body) => {56        body.append(node)

Full Screen

Using AI Code Generation

copy

Full Screen

1describe('Test', () => {2  it('should work', () => {3    cy.get('input[name="q"]').type('Cypress')4    cy.get('form').submit()5    cy.get('div#search').then((search) => {6      const result = document.createElement('div')7      search.append(result)8    })9  })10})11describe('Test', () => {12  it('should work', () => {13    cy.get('div#search').should('contain', 'Cypress is awesome!')14  })15})16Cypress.Commands.add('waitForDomChange', () => {17  cy.window().then((win) => {18    return new Cypress.Promise((resolve) => {19      const observer = new MutationObserver(() => {20        observer.disconnect()21        resolve()22      })23      observer.observe(win.document, {24      })25    })26  })27})28describe('Test', () => {29  it('should work', () => {30    cy.waitForDomChange()31    cy.get('div#search').should('contain', 'Cypress is awesome!')32  })33})

Full Screen

Using AI Code Generation

copy

Full Screen

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

Full Screen

Using AI Code Generation

copy

Full Screen

1const test = document.createElement('div')2test.setAttribute('data-test', 'test')3document.body.appendChild(test)4describe('test', () => {5  it('test', () => {6    cy.get('[data-test="test"]').should('exist')7  })8})9{10}11{12  "scripts": {13  },14  "devDependencies": {15  }16}17import React from 'react'18import ReactDOM from 'react-dom'19import App from './App'20ReactDOM.render(<App />, document.getElementById('root'))21import React from 'react'22const App = () => {23  return (24}

Full Screen

Using AI Code Generation

copy

Full Screen

1describe('Test', () => {2  it('test', () => {3    cy.get('body').then(($body) => {4      const div = document.createElement('div')5      $body.append(div)6    })7  })8})

Full Screen

Using AI Code Generation

copy

Full Screen

1const div = document.createElement('div')2document.body.appendChild(div)3describe('My First Test', function() {4  it('Does not do much!', function() {5    cy.get('h1').should('be.visible')6  })7})8{9}10describe('My First Test', function() {11  it('Does not do much!', function() {12    cy.visit('/')13    cy.get('h1').should('be.visible')14  })15})16describe('My First Test', function() {17  it('Does not do much!', function() {18    cy.visit('/')19    cy.get('h1').should('be.visible')20    cy.get('h1').should('have.text', 'Hello World')21  })22})23describe('My First Test', function() {24  it('Does not do much!', function() {25    cy.visit('/')26    cy.get('h1').should('be.visible')27    cy.get('h1').should('have.text', 'Hello World')28    cy.get('h1').should('have.text', 'Hello World')29  })30})31describe('My First Test', function() {32  it('Does not do much!', function() {

Full Screen

Using AI Code Generation

copy

Full Screen

1const { document } = new JSDOM().window;2const div = document.createElement('div');3div.textContent = 'Hello world';4Cypress.$(document.body).append(div);5describe('Test', () => {6  it('should work', () => {7    cy.visit('./test.html').then(() => {8      cy.get('div').should('have.text', 'Hello world');9    });10  });11});

Full Screen

Using AI Code Generation

copy

Full Screen

1it('creates an element', () => {2  const el = document.createElement('div')3  cy.wrap(el).should('exist').click()4})5it('wraps an object', () => {6  const obj = { foo: 'bar' }7  cy.wrap(obj).should('have.property', 'foo', 'bar').and('not.be.empty').and('deep.equal', { foo: 'bar' })8})9it('wraps an object', () => {10  const obj = { foo: 'bar' }11  cy.wrap(obj).should('have.property', 'foo', 'bar').and('not.be.empty').and('deep.equal', { foo: 'bar' })12})13it('wraps an object', () => {14  const obj = { foo: 'bar' }15  cy.wrap(obj).should('have.property', 'foo', 'bar').and('not.be.empty

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