-
-
Save absyah/fdf7742326252bcf6eef4da1128eb90f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.common.exceptions import ElementClickInterceptedException, NoSuchElementException | |
from time import sleep | |
from selenium.common.exceptions import NoSuchElementException | |
EMAIL = "[email protected]" | |
PASSWORD = "password" | |
print("======= talenta Bot V1 ========") | |
# chrome_driver_path = YOUR CHROME DRIVER PATH | |
driver = webdriver.Chrome() | |
# open the url | |
driver.get("https://account.mekari.com/users/sign_in?client_id=TAL-73645&return_to=L2F1dGg_Y2xpZW50X2lkPVRBTC03MzY0NSZyZXNwb25zZV90eXBlPWNvZGUmc2NvcGU9c3NvOnByb2ZpbGU%3D") | |
# Fill Credentials | |
email = driver.find_element_by_xpath('//*[@id="user_email"]') | |
password = driver.find_element_by_xpath('//*[@id="user_password"]') | |
email.send_keys(EMAIL) | |
password.send_keys(PASSWORD) | |
password.send_keys(Keys.ENTER) | |
# Navigate to Live Attendance Page | |
sleep(5) | |
attendance_button = driver.find_element_by_xpath('//*[@id="tl-dashboard-wrapper"]/div[2]/div/div[2]/div/a[1]') | |
attendance_button.click() | |
# and you can continue by click the clock in or clokc out button |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment