Best Python code snippet using selene_python
Evaluacion-docente.py
Source:Evaluacion-docente.py
...49 i+=150 pyautogui.scroll(1000)51 select = Select(driver.find_element_by_name("respuesta[0].valor"))52 select.select_by_visible_text('De acuerdo')53 select.select_by_value('4')54 select = Select(driver.find_element_by_name("respuesta[1].valor"))55 select.select_by_visible_text('De acuerdo')56 select.select_by_value('4')57 select = Select(driver.find_element_by_name("respuesta[2].valor"))58 select.select_by_visible_text('De acuerdo')59 select.select_by_value('4')60 select = Select(driver.find_element_by_name("respuesta[3].valor"))61 select.select_by_visible_text('De acuerdo')62 select.select_by_value('4')63 select = Select(driver.find_element_by_name("respuesta[4].valor"))64 select.select_by_visible_text('De acuerdo')65 select.select_by_value('4')66 select = Select(driver.find_element_by_name("respuesta[5].valor"))67 select.select_by_visible_text('De acuerdo')68 select.select_by_value('4')69 select = Select(driver.find_element_by_name("respuesta[6].valor"))70 select.select_by_visible_text('De acuerdo')71 time.sleep(1)72 if(botonSiguientePregunta<1):73 botonSiguientePregunta+=174 habla("Acontinuación se hará la captura del botón de siguiente pregunta. Ponga el cursor encima del botón de siguiente pregunta. NO de click , ni mueva el cursor")75 sonidos()76 print(pyautogui.position())77 habla("Posición del mouse capturada")78 SiguientePregunta = pyautogui.position()79 pyautogui.click(SiguientePregunta)80 time.sleep(1)81 else:82 pyautogui.click(SiguientePregunta)83 time.sleep(1)84# select = Select(driver.find_element_by_name("respuesta[2].valor"))85# select.select_by_visible_text('De acuerdo')86# select.select_by_value('4')87# select = Select(driver.find_element_by_name("respuesta[3].valor"))88# select.select_by_visible_text('De acuerdo')89# select.select_by_value('4')90# select = Select(driver.find_element_by_name("respuesta[4].valor"))91# select.select_by_visible_text('De acuerdo')92# select.select_by_value('4')93# select = Select(driver.find_element_by_name("respuesta[5].valor"))94# select.select_by_visible_text('De acuerdo')95# select.select_by_value('4')96# select = Select(driver.find_element_by_name("respuesta[6].valor"))97# select.select_by_visible_text('De acuerdo')98# select.select_by_value('4')99# time.sleep(1)100# pyautogui.click(1205,603)101# confirmar = pyautogui.scroll(1000)102# select = Select(driver.find_element_by_name("respuesta[0].valor"))103# select.select_by_visible_text('De acuerdo')104# select.select_by_value('4')105# select = Select(driver.find_element_by_name("respuesta[1].valor"))106# select.select_by_visible_text('De acuerdo')107# select.select_by_value('4')108# select = Select(driver.find_element_by_name("respuesta[2].valor"))109# select.select_by_visible_text('De acuerdo')110# select.select_by_value('4')111# select = Select(driver.find_element_by_name("respuesta[3].valor"))112# select.select_by_visible_text('De acuerdo')113# select.select_by_value('4')114# select = Select(driver.find_element_by_name("respuesta[4].valor"))115# select.select_by_visible_text('De acuerdo')116# select.select_by_value('4')117# select = Select(driver.find_element_by_name("respuesta[5].valor"))118# select.select_by_visible_text('De acuerdo')119# select.select_by_value('4')120# select = Select(driver.find_element_by_name("respuesta[6].valor"))121# select.select_by_visible_text('De acuerdo')122# select.select_by_value('4')123# time.sleep(1)124# pyautogui.click(1205,603)125# confirmar = pyautogui.scroll(1000)126# select = Select(driver.find_element_by_name("respuesta[0].valor"))127# select.select_by_visible_text('De acuerdo')128# select.select_by_value('4')129# select = Select(driver.find_element_by_name("respuesta[1].valor"))130# select.select_by_visible_text('De acuerdo')131# select.select_by_value('4')132# select = Select(driver.find_element_by_name("respuesta[2].valor"))133# select.select_by_visible_text('De acuerdo')134# select.select_by_value('4')135# select = Select(driver.find_element_by_name("respuesta[3].valor"))136# select.select_by_visible_text('De acuerdo')137# select.select_by_value('4')138# select = Select(driver.find_element_by_name("respuesta[4].valor"))139# select.select_by_visible_text('De acuerdo')140# select.select_by_value('4')141# select = Select(driver.find_element_by_name("respuesta[5].valor"))142# select.select_by_visible_text('De acuerdo')143# select.select_by_value('4')144# select = Select(driver.find_element_by_name("respuesta[6].valor"))145# select.select_by_visible_text('De acuerdo')146# select.select_by_value('4')147# time.sleep(1)148# pyautogui.click(1205,603)149# confirmar = pyautogui.scroll(1000)150# select = Select(driver.find_element_by_name("respuesta[0].valor"))151# select.select_by_visible_text('De acuerdo')152# select.select_by_value('4')153# select = Select(driver.find_element_by_name("respuesta[1].valor"))154# select.select_by_visible_text('De acuerdo')155# select.select_by_value('4')156# select = Select(driver.find_element_by_name("respuesta[2].valor"))157# select.select_by_visible_text('De acuerdo')158# select.select_by_value('4')159# select = Select(driver.find_element_by_name("respuesta[3].valor"))160# select.select_by_visible_text('De acuerdo')161# select.select_by_value('4')162# select = Select(driver.find_element_by_name("respuesta[4].valor"))163# select.select_by_visible_text('De acuerdo')164# select.select_by_value('4')165# select = Select(driver.find_element_by_name("respuesta[5].valor"))166# select.select_by_visible_text('De acuerdo')167# select.select_by_value('4')168# select = Select(driver.find_element_by_name("respuesta[6].valor"))169# select.select_by_visible_text('De acuerdo')170# select.select_by_value('4')171# time.sleep(1)172# pyautogui.click(1205,603)173# confirmar = pyautogui.scroll(1000)174# select = Select(driver.find_element_by_name("respuesta[0].valor"))175# select.select_by_visible_text('De acuerdo')176# select.select_by_value('4')177# select = Select(driver.find_element_by_name("respuesta[1].valor"))178# select.select_by_visible_text('De acuerdo')179# select.select_by_value('4')180# select = Select(driver.find_element_by_name("respuesta[2].valor"))181# select.select_by_visible_text('De acuerdo')182# select.select_by_value('4')183# select = Select(driver.find_element_by_name("respuesta[3].valor"))184# select.select_by_visible_text('De acuerdo')185# select.select_by_value('4')186# select = Select(driver.find_element_by_name("respuesta[4].valor"))187# select.select_by_visible_text('De acuerdo')188# select.select_by_value('4')189# select = Select(driver.find_element_by_name("respuesta[5].valor"))190# select.select_by_visible_text('De acuerdo')191# select.select_by_value('4')192# select = Select(driver.find_element_by_name("respuesta[6].valor"))193# select.select_by_visible_text('De acuerdo')194# select.select_by_value('4')195# time.sleep(1)196# pyautogui.click(1205,603)197# confirmar = pyautogui.scroll(1000)198# select = Select(driver.find_element_by_name("respuesta[0].valor"))199# select.select_by_visible_text('De acuerdo')200# select.select_by_value('4')201# select = Select(driver.find_element_by_name("respuesta[1].valor"))202# select.select_by_visible_text('De acuerdo')203# select.select_by_value('4')204# select = Select(driver.find_element_by_name("respuesta[2].valor"))205# select.select_by_visible_text('De acuerdo')206# select.select_by_value('4')207# select = Select(driver.find_element_by_name("respuesta[3].valor"))208# select.select_by_visible_text('De acuerdo')209# select.select_by_value('4')210# select = Select(driver.find_element_by_name("respuesta[4].valor"))211# select.select_by_visible_text('De acuerdo')212# select.select_by_value('4')213# select = Select(driver.find_element_by_name("respuesta[5].valor"))214# select.select_by_visible_text('De acuerdo')215# select.select_by_value('4')216# select = Select(driver.find_element_by_name("respuesta[6].valor"))217# select.select_by_visible_text('De acuerdo')218# select.select_by_value('4')219# time.sleep(1)220# pyautogui.click(1205,603)221# confirmar = pyautogui.scroll(1000)222# select = Select(driver.find_element_by_name("respuesta[0].valor"))223# select.select_by_visible_text('De acuerdo')224# select.select_by_value('4')225# select = Select(driver.find_element_by_name("respuesta[1].valor"))226# select.select_by_visible_text('De acuerdo')227# select.select_by_value('4')228# select = Select(driver.find_element_by_name("respuesta[2].valor"))229# select.select_by_visible_text('De acuerdo')230# select.select_by_value('4')231# select = Select(driver.find_element_by_name("respuesta[3].valor"))232# select.select_by_visible_text('De acuerdo')233# select.select_by_value('4')234# select = Select(driver.find_element_by_name("respuesta[4].valor"))235# select.select_by_visible_text('De acuerdo')236# select.select_by_value('4')237# select = Select(driver.find_element_by_name("respuesta[5].valor"))238# select.select_by_visible_text('De acuerdo')239# select.select_by_value('4')240# select = Select(driver.find_element_by_name("respuesta[6].valor"))241# select.select_by_visible_text('De acuerdo')242# select.select_by_value('4')243# time.sleep(1)244# pyautogui.click(1205,603)245# confirmar = pyautogui.scroll(1000)246# select = Select(driver.find_element_by_name("respuesta[0].valor"))247# select.select_by_visible_text('De acuerdo')248# select.select_by_value('4')249# select = Select(driver.find_element_by_name("respuesta[1].valor"))250# select.select_by_visible_text('De acuerdo')251# select.select_by_value('4')252# select = Select(driver.find_element_by_name("respuesta[2].valor"))253# select.select_by_visible_text('De acuerdo')254# select.select_by_value('4')255# select = Select(driver.find_element_by_name("respuesta[3].valor"))256# select.select_by_visible_text('De acuerdo')257# select.select_by_value('4')258# select = Select(driver.find_element_by_name("respuesta[4].valor"))259# select.select_by_visible_text('De acuerdo')260# select.select_by_value('4')261# select = Select(driver.find_element_by_name("respuesta[5].valor"))262# select.select_by_visible_text('De acuerdo')263# select.select_by_value('4')264# select = Select(driver.find_element_by_name("respuesta[6].valor"))265# select.select_by_visible_text('De acuerdo')266# select.select_by_value('4')267# time.sleep(1)268# pyautogui.click(1205,603)269# confirmar = pyautogui.scroll(1000)270# select = Select(driver.find_element_by_name("respuesta[0].valor"))271# select.select_by_visible_text('De acuerdo')272# select.select_by_value('4')273# select = Select(driver.find_element_by_name("respuesta[1].valor"))274# select.select_by_visible_text('De acuerdo')275# select.select_by_value('4')276# select = Select(driver.find_element_by_name("respuesta[2].valor"))277# select.select_by_visible_text('De acuerdo')278# select.select_by_value('4')279# select = Select(driver.find_element_by_name("respuesta[3].valor"))280# select.select_by_visible_text('De acuerdo')281# select.select_by_value('4')282# select = Select(driver.find_element_by_name("respuesta[4].valor"))283# select.select_by_visible_text('De acuerdo')284# select.select_by_value('4')285# select = Select(driver.find_element_by_name("respuesta[5].valor"))286# select.select_by_visible_text('De acuerdo')287# select.select_by_value('4')288# select = Select(driver.find_element_by_name("respuesta[6].valor"))289# select.select_by_visible_text('De acuerdo')290# select.select_by_value('4')291# time.sleep(1)292# pyautogui.click(1205,603)293# confirmar = pyautogui.scroll(1000)294# select = Select(driver.find_element_by_name("respuesta[0].valor"))295# select.select_by_visible_text('De acuerdo')296# select.select_by_value('4')297# select = Select(driver.find_element_by_name("respuesta[1].valor"))298# select.select_by_visible_text('De acuerdo')299# select.select_by_value('4')300# select = Select(driver.find_element_by_name("respuesta[2].valor"))301# select.select_by_visible_text('De acuerdo')302# select.select_by_value('4')303# select = Select(driver.find_element_by_name("respuesta[3].valor"))304# select.select_by_visible_text('De acuerdo')305# select.select_by_value('4')306# select = Select(driver.find_element_by_name("respuesta[4].valor"))307# select.select_by_visible_text('De acuerdo')308# select.select_by_value('4')309# select = Select(driver.find_element_by_name("respuesta[5].valor"))310# select.select_by_visible_text('De acuerdo')311# select.select_by_value('4')312# select = Select(driver.find_element_by_name("respuesta[6].valor"))313# select.select_by_visible_text('De acuerdo')314# select.select_by_value('4')315# time.sleep(1)316# pyautogui.click(1205,603)317# confirmar = pyautogui.scroll(1000)318# select = Select(driver.find_element_by_name("respuesta[0].valor"))319# select.select_by_visible_text('De acuerdo')320# select.select_by_value('4')321# select = Select(driver.find_element_by_name("respuesta[1].valor"))322# select.select_by_visible_text('De acuerdo')323# select.select_by_value('4')324# select = Select(driver.find_element_by_name("respuesta[2].valor"))325# select.select_by_visible_text('De acuerdo')326# select.select_by_value('4')327# select = Select(driver.find_element_by_name("respuesta[3].valor"))328# select.select_by_visible_text('De acuerdo')329# select.select_by_value('4')330# select = Select(driver.find_element_by_name("respuesta[4].valor"))331# select.select_by_visible_text('De acuerdo')332# select.select_by_value('4')333# select = Select(driver.find_element_by_name("respuesta[5].valor"))334# select.select_by_visible_text('De acuerdo')335# select.select_by_value('4')336# select = Select(driver.find_element_by_name("respuesta[6].valor"))337# select.select_by_visible_text('De acuerdo')338# select.select_by_value('4')339# time.sleep(1)340# pyautogui.click(1205,603)341# confirmar = pyautogui.scroll(1000)342# select = Select(driver.find_element_by_name("respuesta[0].valor"))343# select.select_by_visible_text('De acuerdo')344# select.select_by_value('4')345# select = Select(driver.find_element_by_name("respuesta[1].valor"))346# select.select_by_visible_text('De acuerdo')347# select.select_by_value('4')348# select = Select(driver.find_element_by_name("respuesta[2].valor"))349# select.select_by_visible_text('De acuerdo')350# select.select_by_value('4')351# select = Select(driver.find_element_by_name("respuesta[3].valor"))352# select.select_by_visible_text('De acuerdo')353# select.select_by_value('4')354# select = Select(driver.find_element_by_name("respuesta[4].valor"))355# select.select_by_visible_text('De acuerdo')356# select.select_by_value('4')357# select = Select(driver.find_element_by_name("respuesta[5].valor"))358# select.select_by_visible_text('De acuerdo')359# select.select_by_value('4')360# select = Select(driver.find_element_by_name("respuesta[6].valor"))361# select.select_by_visible_text('De acuerdo')362# select.select_by_value('4')363# time.sleep(1)364# pyautogui.click(1205,603)365# confirmar = pyautogui.scroll(1000)366# select = Select(driver.find_element_by_name("respuesta[0].valor"))367# select.select_by_visible_text('De acuerdo')368# select.select_by_value('4')369# select = Select(driver.find_element_by_name("respuesta[1].valor"))370# select.select_by_visible_text('De acuerdo')371# select.select_by_value('4')372# select = Select(driver.find_element_by_name("respuesta[2].valor"))373# select.select_by_visible_text('De acuerdo')374# select.select_by_value('4')375# select = Select(driver.find_element_by_name("respuesta[3].valor"))376# select.select_by_visible_text('De acuerdo')377# select.select_by_value('4')378# select = Select(driver.find_element_by_name("respuesta[4].valor"))379# select.select_by_visible_text('De acuerdo')380# select.select_by_value('4')381# select = Select(driver.find_element_by_name("respuesta[5].valor"))382# select.select_by_visible_text('De acuerdo')383# select.select_by_value('4')384# select = Select(driver.find_element_by_name("respuesta[6].valor"))385# select.select_by_visible_text('De acuerdo')386# select.select_by_value('4')387# time.sleep(1)388# pyautogui.click(1205,603)389# confirmar = pyautogui.scroll(1000)390# select = Select(driver.find_element_by_name("respuesta[0].valor"))391# select.select_by_visible_text('De acuerdo')392# select.select_by_value('4')393# select = Select(driver.find_element_by_name("respuesta[1].valor"))394# select.select_by_visible_text('De acuerdo')395# select.select_by_value('4')396# select = Select(driver.find_element_by_name("respuesta[2].valor"))397# select.select_by_visible_text('De acuerdo')398# select.select_by_value('4')399# select = Select(driver.find_element_by_name("respuesta[3].valor"))400# select.select_by_visible_text('De acuerdo')401# select.select_by_value('4')402# select = Select(driver.find_element_by_name("respuesta[4].valor"))403# select.select_by_visible_text('De acuerdo')404# select.select_by_value('4')405# select = Select(driver.find_element_by_name("respuesta[5].valor"))406# select.select_by_visible_text('De acuerdo')407# select.select_by_value('4')408# select = Select(driver.find_element_by_name("respuesta[6].valor"))409# select.select_by_visible_text('De acuerdo')410# select.select_by_value('4')411# time.sleep(1)412# pyautogui.click(1205,603)413# confirmar = pyautogui.scroll(1000)414# select = Select(driver.find_element_by_name("respuesta[0].valor"))415# select.select_by_visible_text('De acuerdo')416# select.select_by_value('4')417# select = Select(driver.find_element_by_name("respuesta[1].valor"))418# select.select_by_visible_text('De acuerdo')419# select.select_by_value('4')420# select = Select(driver.find_element_by_name("respuesta[2].valor"))421# select.select_by_visible_text('De acuerdo')422# select.select_by_value('4')423# select = Select(driver.find_element_by_name("respuesta[3].valor"))424# select.select_by_visible_text('De acuerdo')425# select.select_by_value('4')426# select = Select(driver.find_element_by_name("respuesta[4].valor"))427# select.select_by_visible_text('De acuerdo')428# select.select_by_value('4')429# select = Select(driver.find_element_by_name("respuesta[5].valor"))430# select.select_by_visible_text('De acuerdo')431# select.select_by_value('4')432# select = Select(driver.find_element_by_name("respuesta[6].valor"))433# select.select_by_visible_text('De acuerdo')434# select.select_by_value('4')435# time.sleep(1)436# pyautogui.click(1205,603)437# confirmar = pyautogui.scroll(1000)438# select = Select(driver.find_element_by_name("respuesta[0].valor"))439# select.select_by_visible_text('De acuerdo')440# select.select_by_value('4')441# select = Select(driver.find_element_by_name("respuesta[1].valor"))442# select.select_by_visible_text('De acuerdo')443# select.select_by_value('4')444# select = Select(driver.find_element_by_name("respuesta[2].valor"))445# select.select_by_visible_text('De acuerdo')446# select.select_by_value('4')447# select = Select(driver.find_element_by_name("respuesta[3].valor"))448# select.select_by_visible_text('De acuerdo')449# select.select_by_value('4')450# select = Select(driver.find_element_by_name("respuesta[4].valor"))451# select.select_by_visible_text('De acuerdo')452# select.select_by_value('4')453# select = Select(driver.find_element_by_name("respuesta[5].valor"))454# select.select_by_visible_text('De acuerdo')455# select.select_by_value('4')456# select = Select(driver.find_element_by_name("respuesta[6].valor"))457# select.select_by_visible_text('De acuerdo')458# select.select_by_value('4')459# time.sleep(1)460# pyautogui.click(1205,603)461# confirmar = pyautogui.scroll(1000)462# select = Select(driver.find_element_by_name("respuesta[0].valor"))463# select.select_by_visible_text('De acuerdo')464# select.select_by_value('4')465# select = Select(driver.find_element_by_name("respuesta[1].valor"))466# select.select_by_visible_text('De acuerdo')467# select.select_by_value('4')468# select = Select(driver.find_element_by_name("respuesta[2].valor"))469# select.select_by_visible_text('De acuerdo')470# select.select_by_value('4')471# select = Select(driver.find_element_by_name("respuesta[3].valor"))472# select.select_by_visible_text('De acuerdo')473# select.select_by_value('4')474# select = Select(driver.find_element_by_name("respuesta[4].valor"))475# select.select_by_visible_text('De acuerdo')476# select.select_by_value('4')477# select = Select(driver.find_element_by_name("respuesta[5].valor"))478# select.select_by_visible_text('De acuerdo')479# select.select_by_value('4')480# select = Select(driver.find_element_by_name("respuesta[6].valor"))481# select.select_by_visible_text('De acuerdo')482# select.select_by_value('4')483# time.sleep(1)484# pyautogui.click(1205,603)485# confirmar = pyautogui.scroll(1000)486# select = Select(driver.find_element_by_name("respuesta[0].valor"))487# select.select_by_visible_text('De acuerdo')488# select.select_by_value('4')489# select = Select(driver.find_element_by_name("respuesta[1].valor"))490# select.select_by_visible_text('De acuerdo')491# select.select_by_value('4')492# select = Select(driver.find_element_by_name("respuesta[2].valor"))493# select.select_by_visible_text('De acuerdo')494# select.select_by_value('4')495# select = Select(driver.find_element_by_name("respuesta[3].valor"))496# select.select_by_visible_text('De acuerdo')497# select.select_by_value('4')498# select = Select(driver.find_element_by_name("respuesta[4].valor"))499# select.select_by_visible_text('De acuerdo')500# select.select_by_value('4')501# select = Select(driver.find_element_by_name("respuesta[5].valor"))502# select.select_by_visible_text('De acuerdo')503# select.select_by_value('4')504# select = Select(driver.find_element_by_name("respuesta[6].valor"))505# select.select_by_visible_text('De acuerdo')506# select.select_by_value('4')507# time.sleep(1)508# pyautogui.click(1205,603)509# confirmar = pyautogui.scroll(1000)510# select = Select(driver.find_element_by_name("respuesta[0].valor"))511# select.select_by_visible_text('De acuerdo')512# select.select_by_value('4')513# select = Select(driver.find_element_by_name("respuesta[1].valor"))514# select.select_by_visible_text('De acuerdo')515# select.select_by_value('4')516# select = Select(driver.find_element_by_name("respuesta[2].valor"))517# select.select_by_visible_text('De acuerdo')518# select.select_by_value('4')519# select = Select(driver.find_element_by_name("respuesta[3].valor"))520# select.select_by_visible_text('De acuerdo')521# select.select_by_value('4')522# select = Select(driver.find_element_by_name("respuesta[4].valor"))523# select.select_by_visible_text('De acuerdo')524# select.select_by_value('4')525# select = Select(driver.find_element_by_name("respuesta[5].valor"))526# select.select_by_visible_text('De acuerdo')527# select.select_by_value('4')528# select = Select(driver.find_element_by_name("respuesta[6].valor"))529# select.select_by_visible_text('De acuerdo')530# select.select_by_value('4')531# time.sleep(1)532# pyautogui.click(1205,603)533# confirmar = pyautogui.scroll(1000)534# select = Select(driver.find_element_by_name("respuesta[0].valor"))535# select.select_by_visible_text('De acuerdo')536# select.select_by_value('4')537# select = Select(driver.find_element_by_name("respuesta[1].valor"))538# select.select_by_visible_text('De acuerdo')539# select.select_by_value('4')540# select = Select(driver.find_element_by_name("respuesta[2].valor"))541# select.select_by_visible_text('De acuerdo')542# select.select_by_value('4')543# select = Select(driver.find_element_by_name("respuesta[3].valor"))544# select.select_by_visible_text('De acuerdo')545# select.select_by_value('4')546# select = Select(driver.find_element_by_name("respuesta[4].valor"))547# select.select_by_visible_text('De acuerdo')548# select.select_by_value('4')549# select = Select(driver.find_element_by_name("respuesta[5].valor"))550# select.select_by_visible_text('De acuerdo')551# select.select_by_value('4')552# select = Select(driver.find_element_by_name("respuesta[6].valor"))553# select.select_by_visible_text('De acuerdo')554# select.select_by_value('4')555# time.sleep(1)556# pyautogui.click(1205,603)557# confirmar = pyautogui.scroll(1000)558# select = Select(driver.find_element_by_name("respuesta[0].valor"))559# select.select_by_visible_text('De acuerdo')560# select.select_by_value('4')561# select = Select(driver.find_element_by_name("respuesta[1].valor"))562# select.select_by_visible_text('De acuerdo')563# select.select_by_value('4')564# select = Select(driver.find_element_by_name("respuesta[2].valor"))565# select.select_by_visible_text('De acuerdo')566# select.select_by_value('4')567# select = Select(driver.find_element_by_name("respuesta[3].valor"))568# select.select_by_visible_text('De acuerdo')569# select.select_by_value('4')570# select = Select(driver.find_element_by_name("respuesta[4].valor"))571# select.select_by_visible_text('De acuerdo')572# select.select_by_value('4')573# select = Select(driver.find_element_by_name("respuesta[5].valor"))574# select.select_by_visible_text('De acuerdo')575# select.select_by_value('4')576# select = Select(driver.find_element_by_name("respuesta[6].valor"))577# select.select_by_visible_text('De acuerdo')578# select.select_by_value('4')579# time.sleep(1)580# pyautogui.click(1205,603)581# confirmar = pyautogui.scroll(1000)582# select = Select(driver.find_element_by_name("respuesta[0].valor"))583# select.select_by_visible_text('De acuerdo')584# select.select_by_value('4')585# select = Select(driver.find_element_by_name("respuesta[1].valor"))586# select.select_by_visible_text('De acuerdo')587# select.select_by_value('4')588# select = Select(driver.find_element_by_name("respuesta[2].valor"))589# select.select_by_visible_text('De acuerdo')590# select.select_by_value('4')591# select = Select(driver.find_element_by_name("respuesta[3].valor"))592# select.select_by_visible_text('De acuerdo')593# select.select_by_value('4')594# select = Select(driver.find_element_by_name("respuesta[4].valor"))595# select.select_by_visible_text('De acuerdo')596# select.select_by_value('4')597# select = Select(driver.find_element_by_name("respuesta[5].valor"))598# select.select_by_visible_text('De acuerdo')599# select.select_by_value('4')600# select = Select(driver.find_element_by_name("respuesta[6].valor"))601# select.select_by_visible_text('De acuerdo')602# select.select_by_value('4')603# time.sleep(1)604# pyautogui.click(1205,603)605# confirmar = pyautogui.scroll(1000)606# select = Select(driver.find_element_by_name("respuesta[0].valor"))607# select.select_by_visible_text('De acuerdo')608# select.select_by_value('4')609# select = Select(driver.find_element_by_name("respuesta[1].valor"))610# select.select_by_visible_text('De acuerdo')611# select.select_by_value('4')612# select = Select(driver.find_element_by_name("respuesta[2].valor"))613# select.select_by_visible_text('De acuerdo')614# select.select_by_value('4')615# select = Select(driver.find_element_by_name("respuesta[3].valor"))616# select.select_by_visible_text('De acuerdo')617# select.select_by_value('4')618# select = Select(driver.find_element_by_name("respuesta[4].valor"))619# select.select_by_visible_text('De acuerdo')620# select.select_by_value('4')621# select = Select(driver.find_element_by_name("respuesta[5].valor"))622# select.select_by_visible_text('De acuerdo')623# select.select_by_value('4')624# select = Select(driver.find_element_by_name("respuesta[6].valor"))625# select.select_by_visible_text('De acuerdo')626# select.select_by_value('4')627# time.sleep(1)628# pyautogui.click(1205,603)629# confirmar = pyautogui.scroll(1000)...
Automatzacion.py
Source:Automatzacion.py
...26 27 pais =driver.find_element_by_id("subsidiaryList")28 if pais is not None:29 paisSel = Select(pais)30 paisSel.select_by_value("3")3132 sucursal =driver.find_element_by_id("branchList")33 if sucursal is not None:34 sucursalSel = Select(sucursal)35 sucursalSel.select_by_value("Sede Cali")36 time.sleep(1)37 38 tipo =driver.find_element_by_id("typeVisit")39 if tipo is not None:40 tipoSel = Select(tipo)41 tipoSel.select_by_value("1")4243 nombre = driver.find_element_by_id("employee")44 if nombre is not None:45 nombre.send_keys("Edisson Esteban Gomez Pinzon") 46 time.sleep(1)47 48 documentNumber = driver.find_element_by_id("documentNumber")49 if documentNumber is not None:50 documentNumber.send_keys("1030602922")51 time.sleep(1)5253 temperatura =driver.find_element_by_id("temperature")54 if temperatura is not None:55 temperaturaSel = Select(temperatura)56 temperaturaSel.select_by_value("1")57 time.sleep(1)5859 garganta =driver.find_element_by_id("garganta")60 if garganta is not None:61 gargantaSel = Select(garganta)62 gargantaSel.select_by_value("1")63 time.sleep(1)64 65 nasal =driver.find_element_by_id("nasal")66 if nasal is not None:67 nasalSel = Select(nasal)68 nasalSel.select_by_value("1")69 time.sleep(1)70 71 tos =driver.find_element_by_id("tos")72 if tos is not None:73 tosSel = Select(tos)74 tosSel.select_by_value("1")75 time.sleep(1)76 77 respirar =driver.find_element_by_id("respirar")78 if respirar is not None:79 respirarSel = Select(respirar)80 respirarSel.select_by_value("1") 81 time.sleep(1)82 83 fatiga =driver.find_element_by_id("fatiga")84 if fatiga is not None:85 fatigaSel = Select(fatiga)86 fatigaSel.select_by_value("1") 87 time.sleep(1)8889 escalofrios =driver.find_element_by_id("escalofrios")90 if escalofrios is not None:91 escalofriosSel = Select(escalofrios)92 escalofriosSel.select_by_value("1")93 time.sleep(1)9495 muscular =driver.find_element_by_id("muscular")96 if muscular is not None:97 muscularSel = Select(muscular)98 muscularSel.select_by_value("1")99 time.sleep(1)100101 perdidaolfato =driver.find_element_by_id("perdidaolfato")102 if perdidaolfato is not None:103 perdidaolfatoSel = Select(perdidaolfato)104 perdidaolfatoSel.select_by_value("1")105 time.sleep(1)106 107 perdidasabor =driver.find_element_by_id("perdidasabor")108 if perdidasabor is not None:109 perdidasaborSel = Select(perdidasabor)110 perdidasaborSel.select_by_value("1")111 time.sleep(1)112 113 diarrea =driver.find_element_by_id("diarrea")114 if diarrea is not None:115 diarreaSel = Select(diarrea)116 diarreaSel.select_by_value("1")117 time.sleep(1)118119 contactoSintomas =driver.find_element_by_id("contactoSintomas")120 if contactoSintomas is not None:121 contactoSintomasSel = Select(contactoSintomas)122 contactoSintomasSel.select_by_value("1")123 time.sleep(1)124 125 aislamiento =driver.find_element_by_id("aislamiento")126 if aislamiento is not None:127 aislamientoSel = Select(aislamiento)128 aislamientoSel.select_by_value("1")129 time.sleep(1)130 131 repatriado =driver.find_element_by_id("repatriado")132 if repatriado is not None:133 repatriadoSel = Select(repatriado)134 repatriadoSel.select_by_value("1")135 time.sleep(1)136137 sospechaCovid =driver.find_element_by_id("sospechaCovid")138 if sospechaCovid is not None:139 sospechaCovidSel = Select(sospechaCovid)140 sospechaCovidSel.select_by_value("1")141 time.sleep(1)142143 contactoCovid =driver.find_element_by_id("contactoCovid")144 if contactoCovid is not None:145 contactoCovidSel = Select(contactoCovid)146 contactoCovidSel.select_by_value("1")147 time.sleep(1)148 149 grados = driver.find_element_by_id("temperatureGrade")150 if grados is not None:151 grados.send_keys("37")152 time.sleep(1)153 154 comments = driver.find_element_by_id("comments")155 if comments is not None:156 comments.send_keys("Reunion con el cliente") 157 time.sleep(1)158 159 botonRegistrar = driver.find_element_by_css_selector(".btn")160 if botonRegistrar is not None:161 botonRegistrar.click()162 alerta = driver.switch_to.alert163 time.sleep(2)164 texto = alerta.text165 print("Prueba 1: flujo basico exitoso:", texto)166 alerta.accept()167168 def test2(self):169 170 pais =driver.find_element_by_id("subsidiaryList")171 if pais is not None:172 paisSel = Select(pais)173 paisSel.select_by_value("3")174175 sucursal =driver.find_element_by_id("branchList")176 if sucursal is not None:177 sucursalSel = Select(sucursal)178 sucursalSel.select_by_value("Sede Cali")179 time.sleep(1)180 181 tipo =driver.find_element_by_id("typeVisit")182 if tipo is not None:183 tipoSel = Select(tipo)184 tipoSel.select_by_value("1")185186# nombre = driver.find_element_by_id("employee")187# if nombre is not None:188# nombre.send_keys("Edisson Esteban Gomez Pinzon") 189# time.sleep(1)190 191# documentNumber = driver.find_element_by_id("documentNumber")192# if documentNumber is not None:193# documentNumber.send_keys("1030602922")194# time.sleep(1)195196 temperatura =driver.find_element_by_id("temperature")197 if temperatura is not None:198 temperaturaSel = Select(temperatura)199 temperaturaSel.select_by_value("1")200 time.sleep(1)201202 garganta =driver.find_element_by_id("garganta")203 if garganta is not None:204 gargantaSel = Select(garganta)205 gargantaSel.select_by_value("1")206 time.sleep(1)207 208 nasal =driver.find_element_by_id("nasal")209 if nasal is not None:210 nasalSel = Select(nasal)211 nasalSel.select_by_value("1")212 time.sleep(1)213 214 tos =driver.find_element_by_id("tos")215 if tos is not None:216 tosSel = Select(tos)217 tosSel.select_by_value("1")218 time.sleep(1)219 220 respirar =driver.find_element_by_id("respirar")221 if respirar is not None:222 respirarSel = Select(respirar)223 respirarSel.select_by_value("1") 224 time.sleep(1)225 226 fatiga =driver.find_element_by_id("fatiga")227 if fatiga is not None:228 fatigaSel = Select(fatiga)229 fatigaSel.select_by_value("1") 230 time.sleep(1)231232 escalofrios =driver.find_element_by_id("escalofrios")233 if escalofrios is not None:234 escalofriosSel = Select(escalofrios)235 escalofriosSel.select_by_value("1")236 time.sleep(1)237238 muscular =driver.find_element_by_id("muscular")239 if muscular is not None:240 muscularSel = Select(muscular)241 muscularSel.select_by_value("1")242 time.sleep(1)243244 perdidaolfato =driver.find_element_by_id("perdidaolfato")245 if perdidaolfato is not None:246 perdidaolfatoSel = Select(perdidaolfato)247 perdidaolfatoSel.select_by_value("1")248 time.sleep(1)249 250 perdidasabor =driver.find_element_by_id("perdidasabor")251 if perdidasabor is not None:252 perdidasaborSel = Select(perdidasabor)253 perdidasaborSel.select_by_value("1")254 time.sleep(1)255 256 diarrea =driver.find_element_by_id("diarrea")257 if diarrea is not None:258 diarreaSel = Select(diarrea)259 diarreaSel.select_by_value("1")260 time.sleep(1)261262 contactoSintomas =driver.find_element_by_id("contactoSintomas")263 if contactoSintomas is not None:264 contactoSintomasSel = Select(contactoSintomas)265 contactoSintomasSel.select_by_value("1")266 time.sleep(1)267 268 aislamiento =driver.find_element_by_id("aislamiento")269 if aislamiento is not None:270 aislamientoSel = Select(aislamiento)271 aislamientoSel.select_by_value("1")272 time.sleep(1)273 274 repatriado =driver.find_element_by_id("repatriado")275 if repatriado is not None:276 repatriadoSel = Select(repatriado)277 repatriadoSel.select_by_value("1")278 time.sleep(1)279280 sospechaCovid =driver.find_element_by_id("sospechaCovid")281 if sospechaCovid is not None:282 sospechaCovidSel = Select(sospechaCovid)283 sospechaCovidSel.select_by_value("1")284 time.sleep(1)285286 contactoCovid =driver.find_element_by_id("contactoCovid")287 if contactoCovid is not None:288 contactoCovidSel = Select(contactoCovid)289 contactoCovidSel.select_by_value("1")290 time.sleep(1)291 292 grados = driver.find_element_by_id("temperatureGrade")293 if grados is not None:294 grados.send_keys("37")295 time.sleep(1)296 297 comments = driver.find_element_by_id("comments")298 if comments is not None:299 comments.send_keys("Reunion con el cliente") 300 time.sleep(1)301 302 botonRegistrar = driver.find_element_by_css_selector(".btn")303 if botonRegistrar is not None:
...
tem_data_storage.py
Source:tem_data_storage.py
...12driver.get('http://registration.ap.gov.in/UnitRateMV.do?method=getDistrictList&uType=P')13##########As per the requirement going through one value#####################################14##########default district value if need we can automate this too##################################15select_district = Select(driver.find_element_by_id('districtCode'))16select_district.select_by_value('10')17#paramss={'method': 'getDistrictList','uType': 'P'}18#head={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36',"X-Requested-With": "XMLHttpRequest"}19req=requests.get('http://registration.ap.gov.in/UnitRateMV.do?method=getMandalListByDistCode&districtCode=10')#params=paramss, headers = head20#print(req)21time.sleep(1)22soup = BeautifulSoup(req.text, 'lxml') 23res2=soup.find('mandalCode')24final=soup.find('p')25#print('final......',final)26end=final.text.split('#')27#print('enddddddddd:',end)#28a=end29b=' '.join(a)30c=b.replace(' ','')31print(str(c))32mandal_codes=re.findall('\d+',c)33mandal_names=re.findall("[a-zA-Z.@()]+",c)34print(mandal_names)35print(mandal_codes)36final_mandal_dict=dict(zip(mandal_codes,mandal_names))37print(final_mandal_dict)38'''39dinchaka=[]40for ele in end:41 dik=re.findall('[0-9]',ele)42 dinchaka.extend(dik)43print("dinchaka",dinchaka)#44final_str=''45for i in dinchaka:46 final_str+=i47#print(final_str)48n=249mandal_values=[final_str[i:i+n] for i in range(0, len(final_str), n)]50print("manda_codes",mandal_values)51#############end of list of values#########52'''53for mandal_codes,mandal_values in final_mandal_dict.items():54 select_mandal = Select(driver.find_element_by_id('mandalCode'))55 select_mandal.select_by_value(str(mandal_codes))56 req1=requests.get('http://registration.ap.gov.in/UnitRateMV.do?method=getVillageList&districtCode=10&mandalCode='+mandal_codes+'&sType=R')#, params=paramss, headers = head)57 print(req1)58 soup = BeautifulSoup(req1.text, 'lxml') 59 res2=soup.find('villageCode')60 print(res2)61 final=soup.find('p')62 print(final.text)63 koi=final.text64 a1=koi65 b1=' '.join(a1)66 c1=b1.replace(' ','')67 print(str(c1))68 village_codes=re.findall('\d+',c1)69 village_codes=[data for data in village_codes if len(data)>=4]70 71 village_names=re.findall("[a-zA-Z.@()]+",c1)72 print(village_names)73 print(village_codes)74 #####75 '''76 village_values=re.findall('\d+',koi)77 village_str=re.findall('\w+',koi)78 print("village str values",village_str)79 filterd_val=[]80 for val in village_str:81 if val.isdigit():82 pass83 else:84 filterd_val.append(val)85 final_filter=filterd_val[1:]86 print('filterd_val are:', filterd_val[1:])87 '''88 final_village_dict=dict(zip(village_codes,village_names))89 print(final_village_dict)90 91 for code,name in final_village_dict.items():92 93 select_village = Select(driver.find_element_by_id('villageCode'))94 select_village.select_by_value(str(code))#major error point95 for i in range(201,202):96 #time.sleep(1)97 98 print("survey No:",i, "for village",name)99 driver.find_element_by_xpath("//*[@id='surveyNo']").send_keys(i)100 driver.find_element_by_xpath("//*[@id='Table8']/tbody/tr/td/form/center/input").click()101 time.sleep(2)102 table=(driver.find_element_by_xpath("/html/body/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr[2]/td[2]/table/tbody/tr[3]/td/center[2]/table[1]"))103 table_text=table.text[83:]+' '+name+' '+mandal_values104 print(table_text)105 with open ('data.txt','a') as f:106 f.write(table_text)107 f.write('\n')108 109 driver.execute_script("window.history.go(-1)")110 driver.refresh()111 time.sleep(2)112 113 select_district = Select(driver.find_element_by_id('districtCode'))114 select_district.select_by_value('10')115 time.sleep(2)#116 try: 117 select_mandal = Select(driver.find_element_by_id('mandalCode'))118 select_mandal.select_by_value(str(mandal_codes))119 120 except Exception as e:121 print("exception is:",e)122 continue123 '''124 driver.refresh()125 select_district = Select(driver.find_element_by_id('districtCode'))126 select_district.select_by_value('10')127 select_mandal = Select(driver.find_element_by_id('mandalCode'))128 select_mandal.select_by_value(str(mandal_codes))129 '''130 except NoSuchElementException:131 continue132 '''133 driver.refresh()134 select_district = Select(driver.find_element_by_id('districtCode'))135 select_district.select_by_value('10')136 select_mandal = Select(driver.find_element_by_id('mandalCode'))137 select_mandal.select_by_value(str(mandal_codes))138 '''139 140 141 try:142 time.sleep(2)143 select_village = Select(driver.find_element_by_id('villageCode'))144 select_village.select_by_value(str(code))145 except Exception as e:146 continue147 '''148 driver.refresh()149 select_district = Select(driver.find_element_by_id('districtCode'))150 select_district.select_by_value('10')151 select_mandal = Select(driver.find_element_by_id('mandalCode'))152 select_mandal.select_by_value(str(mandal_codes))153 select_village = Select(driver.find_element_by_id('villageCode'))154 select_village.select_by_value(str(code))155 '''156 except NoSuchElementException:157 continue158 '''159 driver.refresh()160 select_district = Select(driver.find_element_by_id('districtCode'))161 select_district.select_by_value('10')162 select_mandal = Select(driver.find_element_by_id('mandalCode'))163 select_mandal.select_by_value(str(mandal_codes))164 select_village = Select(driver.find_element_by_id('villageCode'))165 select_village.select_by_value(str(code))166 '''167 except Exception as e:168 print("exception is:",e)169 continue170 '''171 driver.refresh()172 select_district = Select(driver.find_element_by_id('districtCode'))173 select_district.select_by_value('10')174 select_mandal = Select(driver.find_element_by_id('mandalCode'))175 select_mandal.select_by_value(str(mandal_codes))176 select_village = Select(driver.find_element_by_id('villageCode'))177 select_village.select_by_value(str(code))178 '''179 180 181 182'''183 184 #driver.execute_script("window.history.go(-1)")185 driver.refresh()186 time.sleep(3)187 188 select_district = Select(driver.find_element_by_id('districtCode'))189 select_district.select_by_value('10')190 select_mandal = Select(driver.find_element_by_id('mandalCode'))191 select_mandal.select_by_value(str(mandal_codes))192 time.sleep(1)193 select_village = Select(driver.find_element_by_id('villageCode'))194 select_village.select_by_value(str(value))195 df=pd.read_csv('data.txt',header=None, delimiter=' ')196 df = df[df.S.No.str.contains('S.No') == False]197 df.to_csv('df_final.csv')198driver.stop_client()199driver.close()200 201 202 203 204 205 206 207 208 ...
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.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!