How to use retour method in SeleniumBase

Best Python code snippet using SeleniumBase

views.py

Source:views.py Github

copy

Full Screen

...14 data = []15 if verification_author(request):16 if expiration_author(request):17 if Pg001.objects.filter(pg001identifiant=request.data['identifiant']):18 return retour(305,data)19 try:20 ab = int(request.data['telephone'])21 except:22 return retour(300, data)23 if not len(request.data['telephone']) == 10:24 return retour(301, data)25 acteur = Pg002.objects.filter(username=request.data['telephone'], is_active=True)26 if not acteur:27 return retour(302, data)28 acteur = Pg002.objects.get(username=request.data['telephone'],is_active=True)29 request.data['pg001id'] = genererIdentifiant("GROUPE")30 serializer = GroupeSerializer(data=request.data)31 if not serializer.is_valid():32 data.append(serializer.errors)33 return retour(303, data)34 serializer.save()35 groupe = Pg001.objects.get(pg001id=serializer.data['pg001id'])36 if Pg003.objects.filter(pg001_id = groupe,pg002_id = acteur):37 return retour(304,data)38 39 lien = Pg003()40 lien.pg003id = genererIdentifiant("GRUSER")41 lien.pg001_id = groupe42 lien.pg002_id = acteur43 lien.pg003admin = True44 lien.pg003retrait = True45 otp = generate_otp(6)46 lien.pg003otp = otp47 lien.pg003otp_expired = time.time()48 lien.save()49 compte = Ps003()50 compte.ps003id = genererIdentifiant('COMPTE_GROUPE'.format(generate_otp(2)))51 compte.ps003numero_compte = genererIdentifiant('{}'.format(generate_otp(3)))52 compte.ps003timetransaction=053 compte.ps003timesomme=054 compte.ps003plafond = 200000055 compte.pg001_id = groupe56 compte.save()57 data.append({"id":lien.pk,"groupe":groupe.pg001raisonSocial,"identifiant":groupe.pg001identifiant,"groupe_id":groupe.pk,"acteur_id":acteur.pk,"nom":acteur.first_name,"prenoms":acteur.last_name})58 return retour(200,data)59 else:60 return retour(450, data)61 else:62 return retour(400, data)63@api_view(['POST'])64def generer_otp_groupe(request):65 try:66 data = []67 if verification_author(request):68 if expiration_author(request):69 id = request.data['id']70 if not Pg003.objects.filter(pk=id):71 return retour(300, data)72 acteur = Pg003.objects.get(pk=id)73 otp = generate_otp(6)74 acteur.pg003otp = otp75 acteur.pg003otp_expired = time.time()76 acteur.save()77 ####Appel d'api de SMS78 data.append(dict({"id": acteur.pk, "otp":otp}))79 return retour(200, data)80 else:81 return retour(450, data)82 else:83 return retour(400, data)84 except:85 return retour(505, data)86@api_view(['POST'])87def validation_groupe(request):88 try:89 data = []90 if verification_author(request):91 if expiration_author(request):92 otp = request.data['otp']93 id = request.data['id']94 if Pg003.objects.filter(pk=id):95 acteur = Pg003.objects.get(pk=id)96 if acteur.pg003otp == otp:97 if evaluate_time(acteur.pg003otp_expired, 120):98 ab = generate_otp(6)99 acteur.pg003otp = ab100 acteur.pg003otp_expired = time.time()101 acteur.save()102 return retour(200, data)103 else:104 return retour(300, data)105 else:106 return retour(301, data)107 return retour(302, data)108 else:109 return retour(450, data)110 else:111 return retour(400, data, )112 except:113 return retour(505, data)114@api_view(['POST'])115def enregistrer_password(request):116 data = []117 if verification_author(request):118 if expiration_author(request):119 id = request.data['id']120 mdp = request.data['toi']121 if Pg003.objects.filter(pk=id):122 acteur = Pg003.objects.get(pk=id)123 mdu = "{}{}".format(mdp,acteur.pg003id)124 acteur.pg003mdp = make_password(mdu)125 acteur.pg003estbloque = False126 acteur.save()127 ##############Table connexion128 pm = Ps111.objects.filter(pg003_id=acteur, ps111statut_connexion=True)129 if pm :130 for i in pm:131 i.delete()132 connexion = Ps111()133 connexion.ps111id = genererIdentifiant('LOGINGROUPE')134 connexion.ps111telephone = create_key()135 connexion.ps111statut_connexion = True136 connexion.pg003_id = acteur137 connexion.save()138 token = generer_token(acteur,connexion)139 tokenR = generer_tokenR(acteur,connexion)140 data.append(dict({"id": acteur.pk,"authUser":token,"refreshUser":tokenR})) 141 return retour(200, data)142 else:143 return retour(301, data)144 else:145 return retour(450, data)146 else:147 return retour(400, data)148@api_view(['POST'])149def newinformation(request):150 data = []151 if verification_author(request):152 if expiration_author(request):153 if verification_token(request):154 if expiration_token(request):155 try:156 ab = int(request.data['numero'])157 except:158 return retour(300, data)159 if not len(request.data['numero']) == 10:160 return retour(301, data)161 if get_id_by_token(request) == False:162 return retour(302,data)163 acteur = get_id_by_token(request)164 groupe = Pg001.objects.get(pk=acteur.pg001_id.pk)165 if not groupe.pg001telephone == None:166 return retour(303,data)167 ab = generate_otp(6)168 groupe.pg001otp = ab169 groupe.pg001otp_expired = time.time()170 groupe.pg001telephone = request.data['numero']171 groupe.save()172 d = dict()173 d['numero'] = groupe.pg001telephone174 d['id'] = acteur.pk175 data.append(d)176 return retour(200, data)177 else:178 return retour(470, data)179 else:180 return retour(460, data)181 else:182 return retour(450, data)183 else:184 return retour(400, data)185@api_view(['GET'])186def generer_otp_retrait(request):187 try:188 data = []189 if verification_author(request):190 if expiration_author(request):191 if verification_token(request):192 if expiration_token(request): 193 acteur = get_id_by_token(request)194 groupe = Pg001.objects.get(pk=acteur.pg001_id.pk)195 if groupe.pg001telephone == None:196 return retour(303,data)197 ab = generate_otp(6)198 groupe.pg001otp = ab199 groupe.pg001otp_expired = time.time()200 groupe.save()201 ####Appel d'api de SMS202 data.append(dict({"id": acteur.pk, "otp":ab}))203 return retour(200, data)204 else:205 return retour(470, data)206 else:207 return retour(460, data)208 else:209 return retour(450, data)210 else:211 return retour(400, data)212 except:213 return retour(505, data)214@api_view(['POST'])215def validation_retrait(request):216 try:217 data = []218 if verification_author(request):219 if expiration_author(request):220 if verification_token(request):221 if expiration_token(request):222 otp = request.data['otp']223 acteur = get_id_by_token(request)224 groupe = Pg001.objects.get(pk=acteur.pg001_id.pk)225 if groupe.pg001otp == otp:226 if evaluate_time(groupe.pg001otp_expired, 120):227 ab = generate_otp(6)228 groupe.pg001otp = ab229 groupe.pg001otp_expired = time.time()230 groupe.save()231 return retour(200, data)232 else:233 return retour(300, data)234 else:235 return retour(301, data)236 else:237 return retour(470, data)238 else:239 return retour(460, data)240 else:241 return retour(450, data)242 else:243 return retour(400, data, )244 except:245 return retour(505, data)246@api_view(['POST'])247def connexion(request):248 try:249 data = []250 if verification_author(request):251 if expiration_author(request):252 identifiant = request.data['identifiant']253 numero = request.data['numero']254 pwd = request.data['password']255 if Pg003.objects.filter(pg001_id__pg001identifiant=identifiant,pg002_id__username=numero,pg003estbloque=False):256 acteur = Pg003.objects.get(pg001_id__pg001identifiant=identifiant,pg002_id__username=numero,pg003estbloque=False)257 mdu = "{}{}".format(pwd,acteur.pg003id)258 if check_password(mdu,acteur.pg003mdp):259 pm = Ps111.objects.filter(pg003_id=acteur, ps111statut_connexion=True)260 if pm :261 for i in pm:262 i.delete()263 connexion = Ps111()264 connexion.ps111id = genererIdentifiant('LOGINGROUPE')265 connexion.ps111telephone = create_key()266 connexion.ps111statut_connexion = True267 connexion.pg003_id = acteur268 connexion.save()269 token = generer_token(acteur,connexion)270 tokenR = generer_tokenR(acteur,connexion)271 data.append(dict({"id": acteur.pk,"authUser":token,"refreshUser":tokenR}))272 return retour(200, data)273 else:274 return retour(300, data)275 return retour(301, data)276 else:277 return retour(450, data)278 else:279 return retour(400, data)280 except:281 return retour(505, data)282@api_view(['POST'])283def refresh_user(request):284 data = []285 if verification_author(request):286 if expiration_author(request):287 ab = verification_tokenR(request)288 if ab == False:289 return retour(300, data)290 ac = ab.get("bool")291 if ac:292 pd = Pg003.objects.get(pk=ab.get("acteur"))293 connexion = Ps111.objects.get(pk=ab.get("connexion"))294 token = generer_token(pd,connexion)295 data.append({"auth_user": token})296 return retour(200, data)297 else:298 return retour(301, data)299 else:300 return retour(450, data)301 else:302 return retour(400, data)303#****************** CRUD NEW AGENT304@api_view(['POST'])305def newmember(request):306 data = []307 if verification_author(request):308 if expiration_author(request):309 if verification_token(request):310 if expiration_token(request):311 acteur = get_id_by_token(request)312 try:313 ab = int(request.data['telephone'])314 except:315 return retour(300, data)316 if not len(request.data['telephone']) == 10:317 return retour(301, data)318 if not Pg002.objects.filter(username=request.data['telephone'],is_active=True):319 return retour(302, data)320 member = Pg002.objects.get(username=request.data['telephone'],is_active=True)321 322 groupe = Pg001.objects.get(pg001id=acteur.pg001_id.pg001id)323 if Pg003.objects.filter(pg001_id = groupe,pg002_id = member):324 return retour(304,data)325 326 lien = Pg003()327 lien.pg003id = genererIdentifiant("GRUSER")328 lien.pg001_id = groupe329 lien.pg002_id = member330 lien.pg003admin = False331 lien.pg003retrait = False332 lien.pg003estbloque=False333 otp = gen()334 lien.pg003mdp = otp335 lien.save()336 data.append({"id":lien.pk,"acteur_id":member.pk,"nom":member.first_name,"prenoms":member.last_name,"mdp":otp})337 return retour(200,data)338 else:339 return retour(470,data)340 else:341 return retour(460,data)342 else:343 return retour(450, data)344 else:345 return retour(400, data)346##### Mdp id=2 : de09FFe1347@api_view(['DELETE'])348def delmember(request):349 data = []350 if verification_author(request):351 if expiration_author(request):352 if verification_token(request):353 if expiration_token(request):354 355 if Pg003.objects.filter(pk = request.data['groupe_id'],pg003estbloque=False):356 groupe = Pg003.objects.get(pk = request.data['groupe_id'])357 groupe.pg003estbloque = True358 groupe.save()359 return retour(200,data)360 return retour(300,data)361 else:362 return retour(470,data)363 else:364 return retour(460,data)365 else:366 return retour(450, data)367 else:368 return retour(400, data)369@api_view(['PUT'])370def accordermember(request):371 data = []372 if verification_author(request):373 if expiration_author(request):374 if verification_token(request):375 if expiration_token(request):376 if Pg003.objects.filter(pk = request.data['groupe_id'],pg003estbloque=False):377 groupe = Pg003.objects.get(pk = request.data['groupe_id'])378 groupe.pg003admin = True379 groupe.pg003retrait = True380 groupe.save()381 return retour(200,data)382 return retour(300,data)383 else:384 return retour(470,data)385 else:386 return retour(460,data)387 else:388 return retour(450, data)389 else:390 return retour(400, data)391@api_view(['PUT'])392def desaccordermember(request):393 data = []394 if verification_author(request):395 if expiration_author(request):396 if verification_token(request):397 if expiration_token(request):398 if Pg003.objects.filter(pk = request.data['groupe_id'],pg003estbloque=False):399 groupe = Pg003.objects.get(pk = request.data['groupe_id'])400 groupe.pg003admin = False401 groupe.pg003retrait = False402 groupe.save()403 return retour(200,data)404 return retour(300,data)405 else:406 return retour(470,data)407 else:408 return retour(460,data)409 else:410 return retour(450, data)411 else:412 return retour(400, data)413@api_view(['GET'])414def readmember(request):415 data = []416 if verification_author(request):417 if expiration_author(request):418 if verification_token(request):419 if expiration_token(request):420 acteur = get_id_by_token(request)421 if not acteur.pg003admin:422 return retour(300,data)423 alle = Pg003.objects.filter(pg001_id=acteur.pg001_id,pg003estbloque=False).exclude(pk=acteur.pk)424 for i in alle:425 d = dict()426 d['nom']= i.pg002_id.first_name427 d['prenoms']= i.pg002_id.last_name428 if i.pg003admin:429 d['droit'] = "Administrateur"430 else:431 d['droit'] = "Agent"432 d['numero'] = i.pg002_id.username433 data.append(d)434 return retour(200,data) 435 else:436 return retour(470,data)437 else:438 return retour(460,data)439 else:440 return retour(450, data)441 else:442 return retour(400, data)443#****************** HOME444@api_view(['GET'])445def solde(request):446 data = []447 if verification_author(request):448 if expiration_author(request):449 if verification_token(request):450 if expiration_token(request):451 acteur = get_id_by_token(request)452 groupe = Pg001.objects.get(pk=acteur.pg001_id.pk)453 if not Ps003.objects.filter(pg001_id=groupe):454 return retour(300,data)455 compte = Ps003.objects.get(pg001_id=groupe)456 d = dict()457 d['solde'] = compte.ps003morant458 return retour(200,d) 459 else:460 return retour(470,data)461 else:462 return retour(460,data)463 else:464 return retour(450, data)465 else:466 return retour(400, data)467@api_view(['GET'])468def historiquepaiement(request):469 try:470 data = []471 if verification_author(request):472 if expiration_author(request):473 if verification_token(request):474 if expiration_token(request):475 if get_id_by_token(request) == False:476 return retour(300,data)477 acteur = get_id_by_token(request)478 groupe = Pg001.objects.get(pk=acteur.pg001_id.pk)479 if not Ps003.objects.filter(pg001_id=groupe):480 return retour(300,data)481 compte = Ps003.objects.get(pg001_id=groupe)482 envoi = Pg100.objects.filter(ps003codeEnvoi=compte)483 for i in envoi:484 d = dict()485 d['type']= "ENVOI"486 d['somme']= i.pg100somme487 d['date'] = i.dateCreation488 data.append(d)489 recu = Pg100.objects.filter(ps003codeRecu=compte)490 for i in envoi:491 d = dict()492 d['type']= "REÇU"493 d['somme']= i.pg100somme494 d['date'] = i.dateCreation495 data.append(d)496 return retour(200, data)497 498 else:499 return retour(470, data)500 else:501 return retour(460, data)502 else:503 return retour(450, data)504 else:505 return retour(400, data)506 except:507 return retour(505, data)508@api_view(['GET'])509def qrcode(request):510 try:511 data = []512 if verification_author(request):513 if expiration_author(request):514 if verification_token(request):515 if expiration_token(request):516 if get_id_by_token(request) == False:517 return retour(300,data)518 acteur = get_id_by_token(request)519 groupe = Pg001.objects.get(pk=acteur.pg001_id.pk)520 qrcode = code_qr(groupe.pk,True)521 d= dict()522 d['qrcode'] = qrcode523 data.append(qrcode)524 return retour(200, data)525 else:526 return retour(470, data)527 else:528 return retour(460, data)529 else:530 return retour(450, data)531 else:532 return retour(400, data)533 except:534 return retour(505, data)535@api_view(['POST'])536def scanqrcode(request):537 try:538 data = []539 if verification_author(request):540 if expiration_author(request):541 if verification_token(request):542 if expiration_token(request):543 if get_id_by_token(request) == False:544 return retour(300,data)545 acteur = get_id_by_token(request)546 url = request.data['url']547 qrcode = verif_qr(url)548 if qrcode == False:549 return retour(301,data)550 id = qrcode['id']551 type = qrcode['type']552 if type == 10:553 if not Pg002.objects.filter(pk=id, is_active = True, pg002test=False):554 return retour(302,data)555 destination = Pg002.objects.get(pk=id)556 der = dict()557 der['id'] = destination.pk558 der['test'] = destination.pg002id559 der['nom'] = destination.first_name560 der['prenoms'] = destination.last_name561 der['numéro'] = destination.username562 return retour(200, der)563 if type == 11:564 if not Pg001.objects.filter(pk=id, pg001compte_valide = True, pg001test=False):565 return retour(303,data)566 destination = Pg001.objects.get(pk=id)567 der = dict()568 der['id'] = destination.pk569 der['test'] = destination.pg001id570 der['raison_social'] = destination.pg001raisonSocial571 der['sigle'] = destination.pg001sigle572 return retour(201, der)573 else:574 return retour(470, data)575 else:576 return retour(460, data)577 else:578 return retour(450, data)579 else:580 return retour(400, data)581 except:582 return retour(505, data)583@api_view(['PUT'])584def new_password(request):585 data = []586 if verification_author(request):587 if expiration_author(request):588 if verification_token(request):589 if expiration_token(request):590 acteu = get_id_by_token(request)591 acteur = Pg003.objects.get(pk=acteu.pk)592 if len(request.data['oldpassword']) < 1:593 return retour(300, data)594 mdu = "{}{}".format(request.data['oldpassword'],acteur.pg003id)595 if not check_password(mdu,acteur.pg003mdp):596 return retour(301, data)597 598 mpu = "{}{}".format(request.data['newpassword'],acteur.pg003id)599 acteur.pg003mdp= make_password(mpu)600 acteur.save()601 return retour(200, data)602 else:603 return retour(465, data)604 else:605 return retour(460, data)606 else:607 return retour(450, data)608 else:...

Full Screen

Full Screen

home.py

Source:home.py Github

copy

Full Screen

1def ajouterObject(objectJson, fichier):2 file = open(fichier, "r")3 data = json.load(file) 4 file.close()5 data.append(objectJson)6 #print(data)7 file = open(fichier, "w")8 json.dump(data, file, indent=4) 9 file.close()10def obtenirListe(fichier):11 file = open(fichier, "r")12 liste = json.load(file)13 file.close()14 return liste15from flask import Flask, render_template, request, redirect16import json17app = Flask(__name__)18@app.route("/")19def rediriger():20 return redirect("http://127.0.0.1:5000/croute") 21@app.route("/croute", methods=["POST", "GET"])22def croute():23 retourCroute = ""24 if request.method == "POST":25 crouteJson = json.loads(request.form["instanceCroute"]) #json.loads -> met string en objet26 ajouterObject(crouteJson, "croutes.json")27 if crouteJson['nom'] != "" and crouteJson['prix'] != "" and crouteJson['poids'] != "" and crouteJson["type"] != "":28 retourCroute = 'Croute enregistré'29 else:30 retourCroute = ""31 return render_template("croute.html", retourMsg=retourCroute)32 else:33 return render_template("croute.html", retourMsg=retourCroute)34@app.route("/fromage", methods=["POST", "GET"])35def fromage():36 retourFromage = ""37 if request.method == "POST":38 fromageJson = json.loads(request.form["instanceFromage"])39 40 ajouterObject(fromageJson, "fromages.json")41 if fromageJson['nom'] != "" and fromageJson['prix'] != "" and fromageJson['poids'] != "":42 retourFromage = 'Fromage enregistré'43 else:44 retourFromage = ""45 return render_template("fromage.html", retourMsg=retourFromage)46 else:47 return render_template("fromage.html", retourMsg=retourFromage)48@app.route("/garniture", methods=["POST", "GET"])49def garniture():50 retourGarniture = ""51 if request.method == "POST":52 garnitureJson = json.loads(request.form["instanceGarniture"])53 54 ajouterObject(garnitureJson, "garnitures.json")55 if garnitureJson['nom'] != "" and garnitureJson['prix'] != "" and garnitureJson['poids'] != "":56 retourGarniture = 'Garniture enregistrée'57 else:58 retourGarniture = ""59 return render_template("garniture.html", retourMsg=retourGarniture)60 else:61 return render_template("garniture.html", retourMsg=retourGarniture)62@app.route("/client", methods=["POST", "GET"])63def client():64 retourClient = ""65 if request.method == "POST":66 clientJson = json.loads(request.form["instanceClient"])67 68 ajouterObject(clientJson, "clients.json")69 if clientJson['nom'] != "" and clientJson['prenom'] != "" and clientJson['telephone'] != "" and clientJson['courriel'] != "":70 retourClient = 'Client enregistré'71 else:72 retourClient = ""73 return render_template("client.html", retourMsg=retourClient)74 else:75 return render_template("client.html", retourMsg=retourClient)76@app.route("/pizza", methods=["POST", "GET"])77def pizza():78 retourPizza = ""79 retourPrix = 080 prixGarniture = 081 prixFromage = 082 prixCroute = 083 prixTotal = 084 listeTailles = obtenirListe("tailles.json")85 listeCroutes = obtenirListe("croutes.json")86 listeFromages = obtenirListe("fromages.json")87 listeGarnitures = obtenirListe("garnitures.json")88 if request.method == "POST":89 pizzaJson = json.loads(request.form["instancePizza"]) #json.loads -> met string en objet90 91 for item in pizzaJson['garnitures']:92 prixGarniture = prixGarniture + item.get('prix');93 for item in pizzaJson['fromages']:94 prixFromage = prixFromage + item.get('prix');95 96 for item in pizzaJson['croute']:97 prixCroute = pizzaJson['croute']['prix'];98 99 prixTotal = prixTotal + prixFromage + prixGarniture + prixCroute;100 pizzaJson['prixComplet'] = prixTotal101 ajouterObject(pizzaJson, "pizzas.json")102 if pizzaJson['numero'] != "" and pizzaJson['taille'] != "" and pizzaJson['croute'] != "" and pizzaJson['fromages'] != "" and pizzaJson['garnitures'] != "" and pizzaJson['tempsCuisson'] != "" and pizzaJson['prixComplet'] != "":103 retourPizza = 'Pizza enregistrée'104 else:105 retourPizza = ""106 return render_template("pizza.html", listePyTailles=listeTailles, listePyCroutes=listeCroutes, listePyFromages=listeFromages, listePyGarnitures=listeGarnitures, retourMsg=retourPizza, retourPrix=prixTotal)107 else:108 return render_template("pizza.html", listePyTailles=listeTailles, listePyCroutes=listeCroutes, listePyFromages=listeFromages, listePyGarnitures=listeGarnitures, retourMsg=retourPizza, retourPrix=prixTotal)109@app.route("/commande", methods=["POST", "GET"])110def commande():111 retourCommande = ""112 prixCommande = 0113 listePizzas = obtenirListe("pizzas.json")114 listeClients = obtenirListe("clients.json")115 116 if request.method == "POST":117 commandeJson = json.loads(request.form["instanceCommande"]) #json.loads -> met string en objet118 for item in commandeJson['pizzas']:119 prixCommande = prixCommande + item.get('prixComplet');120 121 prixCommande = prixCommande + (14.975 * prixCommande / 100)122 ajouterObject(commandeJson, "commandes.json")123 if commandeJson['numero'] != "" and commandeJson['client'] != "" and commandeJson['date'] != "" and commandeJson['heure'] != "" and commandeJson['pizzas']:124 retourCommande = 'Commande enregistrée'125 else:126 retourCommande = ""127 return render_template("commande.html", listePyPizzas=listePizzas, listePyClients=listeClients, retourMsg=retourCommande, retourCommande=prixCommande)128 else:129 return render_template("commande.html", listePyPizzas=listePizzas, listePyClients=listeClients, retourMsg=retourCommande, retourCommande=prixCommande)130#json.dump ->en format json, enregistre date dans file avec bon indentation131#fromageJson = json.loads(request.form["instanceFromage"]) -> lire fichier et l'interprete comme élément json pour l'ajouter132if __name__ == "__main__":...

Full Screen

Full Screen

Python.py

Source:Python.py Github

copy

Full Screen

1import numpy as np2def polyhello(x):3 """4 Polynomial interpolation of the letters of "Hello world".5 We try to get to all the points defined by : [ord(c) for c in "Hello world"].6 Wich means we need to find a fonction that passes trought these points:7 (0,72)(1,101)(2,108)(3,108)(4,111)(5,32)(6,119)(7,111)(8,114)(9,108)(10,100).8 Take a look at https://en.wikipedia.org/wiki/Polynomial_interpolation.9 """10 retour = (x**10)*5507/90720011 retour -= (x**9)*5237/1728012 retour += (x**8)*97919/1512013 retour -= (x**7)*1559633/2016014 retour += (x**6)*24452771/4320015 retour -= (x**5)*15044903/576016 retour += (x**4)*683659441/9072017 retour -= (x**3)*56016979/432018 retour += (x**2)*8327237/70019 retour -= x*604657/14020 retour += 7221 return int(np.round(retour))22for i in range(11):...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run SeleniumBase 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