Log in with your MaiOtaku account.
Home Forum Anime Members Help
joemama711

Anti-spyware

Male
Last online about 7 hours ago
GA
joemama711
Looks and sounds awful honestly lol God speed brother
arc
Apr 17, 23 at 4:14pm
brain is hurting defining selenium methods. Here is an example of what I'm working on using web automation. Basically I add a promo and then validate that it is discounted correctly: def ApplyPromo(): assert totalAmount != 0 driver.find_element(By.CSS_SELECTOR, ".promoCode").send_keys("Big20") driver.find_element(By.CSS_SELECTOR, ".promoBtn").click() # promo code may take up to 10 seconds, so you need to apply an explicit wait here to extend the time in this case wait = WebDriverWait(driver, 10) wait.until(expected_conditions.presence_of_element_located((By.CSS_SELECTOR, ".promoInfo"))) promoText = driver.find_element(By.CLASS_NAME, "promoInfo").text print(promoText) assert promoText == "Code applied ..!" discountPercentage = int((driver.find_element(By.CSS_SELECTOR, ".discountPerc").text).strip('%')) discountedTotal = (totalAmount - (totalAmount / discountPercentage)) currency = locale.currency((discountedTotal / 100), grouping=True) assert discountedTotal == float(driver.find_element(By.CSS_SELECTOR, ".discountAmt").text) print("Total after discount = " + str(currency))
verucassault
Veru @verucassault left a comment for Anti-spyware
Apr 17, 23 at 9:33am
https://youtube.com/shorts/GvxW6hMXlcg https://media.tenor.com/bJdoqj5am7gAAAAC/really-though.gif
joemama711
Anti-spyware @joemama711 Dude WHAT LOL I figured they would break!
joemama711
You're welcome, hope ya have a good time.
angerissuequeen
This account has been suspended.
redhawk
Aka-san @redhawk left a comment for Anti-spyware
Apr 16, 23 at 1:44pm
noticed the MMBN pfp, did you get the Legacy Collection?
joemama711
Pic
Best kinda salad ^_^
joemama711
https://youtu.be/YweSJ_FiSws
joemama711
Finished watching arcane, i see why everyone was hyped about it. I might watch some league but the community is pretty toxic
joemama711
Lunges tommorow :")
joemama711
3 interviews lined up xD
joemama711
https://youtube.com/shorts/jBhyMmTzmlM?feature=share
joemama711
Anti-spyware @joemama711 Litter box cake lmao
Continue