forked from Kumari-Pragati/ProjectHub_SE
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_2.py
More file actions
15 lines (14 loc) · 656 Bytes
/
test_2.py
File metadata and controls
15 lines (14 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
driver = webdriver.Chrome()
driver.maximize_window()
driver.get("http://localhost/Hotel-Management-System/")
driver.set_window_size(1366, 738)
driver.find_element(By.XPATH, '/html/body/section[2]/div[2]/div[1]/div/div[2]').click()
driver.find_element(By.NAME, "Emp_Email").click()
driver.find_element(By.NAME, "Emp_Email").send_keys("Admin@gmail.com")
driver.find_element(By.NAME, "Emp_Password").send_keys("1234")
driver.find_element(By.NAME, "Emp_login_submit").click()
driver.find_element(By.CSS_SELECTOR, ".pagebtn:nth-child(3)").click()
driver.switch_to.frame(1)