#Use this template for your morning and night routine#
template:: 3MinuteMorning
Mood:: #excited #relaxed #optimistic
What did I dream?
Three things I am grateful for
###################################################### | |
# 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 # | |
###################################################### |
###################################################### | |
# 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") |
print("Going to the Business page now...") | |
driver.get(business_page) |
print("Now going to the Events page") | |
driver.get(event_page) |
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") |
# Publish event | |
time.sleep(2) | |
print("Submit Event") | |
submitevent = driver.find_element(By.XPATH,'.//*[@class="_42ft _4jy0 layerConfirm _2pi9 _4jy3 _4jy1 selected _51sy"]').click() |