Skip to content

Instantly share code, notes, and snippets.

@sodastereo
sodastereo / DailyRoutine.md
Created March 8, 2022 19:29
A template to get your morning started. Once your day is done, use the Night template to wrap up your night/day.

#Use this template for your morning and night routine#

Morning 🌞

template:: 3MinuteMorning

Mood:: #excited #relaxed #optimistic

What did I dream?

Three things I am grateful for

# Publish event
time.sleep(2)
print("Submit Event")
submitevent = driver.find_element(By.XPATH,'.//*[@class="_42ft _4jy0 layerConfirm _2pi9 _4jy3 _4jy1 selected _51sy"]').click()
print("Clicking on the Event Name field")
eventsbutton = driver.find_element(By.XPATH,'.//*[@class="_42ft _4jy0 _3-90 _4jy4 _4jy1 selected _51sy"]').click()
time.sleep(2)
print("Adding event name information")
eventname= "Automated Coffee For All"
eventbutton = driver.find_element(By.XPATH,'.//*[@class="_1o0a _55r1 _1488 _58ak _3ct8"]').send_keys(eventname)
time.sleep(2)
print("Clicking on the Description field")
print("Now going to the Events page")
driver.get(event_page)
print("Going to the Business page now...")
driver.get(business_page)
######################################################
# FB XPATHS #
######################################################
print("Let's Begin")
emailelement = driver.find_element(By.XPATH,".//*[contains(@id, 'email')]").send_keys(username)
print("Username Entered")
passwordelement = driver.find_element(By.XPATH,".//*[contains(@id, 'pass')]").send_keys(password)
print("Password Entered")
######################################################
# FB XPATHS #
######################################################
print("Let's Begin")
emailelement = driver.find_element(By.XPATH,".//*[contains(@id, 'email')]").send_keys(username)
print("Username Entered")
passwordelement = driver.find_element(By.XPATH,".//*[contains(@id, 'pass')]").send_keys(password)
print("Password Entered")
######################################################
# Imports #
######################################################
from selenium import webdriver
from selenium.webdriver.common.by import By
import time
######################################################
# Variables #
######################################################
######################################################
# Imports #
######################################################
from selenium import webdriver
from selenium.webdriver.common.by import By
import time
######################################################
# Variables #
######################################################