5tgg

mail@pastecode.io avatar
unknown
python
2 years ago
751 B
1
Indexable
Never
from selenium import webdriver
from selenium.webdriver.common.by import By
import os

driver = webdriver.Chrome(os.getcwd() + "\chromedriver.exe")

driver.get('https://account.meraki.com/secure/login/dashboard_login')

username = "yalkjkk"
password = "huhka"
driver.implicitly_wait(10)
driver.find_element_by_name("email").send_keys(username)
driver.find_element_by_id("next-btn").click()

driver.find_element_by_name("password").send_keys(password)
driver.find_element_by_id("login-btn").click()

driver.implicitly_wait(10)
driver.find_element_by_id("client-download-dropdown").click()

driver.implicitly_wait(7)
driver.find_element(By.PARTIAL_LINK_TEXT, 'CSV').click()
driver.find_element(By.PARTIAL_LINK_TEXT, 'csv').click()