From 09b8341b97be161e4b7409c378b401b633fe0795 Mon Sep 17 00:00:00 2001 From: MahmoudRedaSayed Date: Thu, 24 Aug 2023 08:49:38 +0300 Subject: [PATCH] add page locators --- pages/profile.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pages/profile.py diff --git a/pages/profile.py b/pages/profile.py new file mode 100644 index 00000000..5338637e --- /dev/null +++ b/pages/profile.py @@ -0,0 +1,22 @@ +from selenium import webdriver +from selenium.webdriver.common.by import By + +class Profile: + email = (By.XPATH, '//*[@type="email"]') + password = (By.XPATH, '//*[@type="password"]') + login_button = (By.XPATH, '//button[text()="Login"]') + full_name_text = (By.XPATH, '//*[@id="body-pd"]/div[2]/section/div/div/div[2]/div[1]/div/div[1]/div[2]/p') + email_text = (By.XPATH, '//*[@id="body-pd"]/div[2]/section/div/div/div[2]/div[1]/div/div[2]/div[2]/p') + telegram_text = (By.XPATH, '//*[@id="body-pd"]/div[2]/section/div/div/div[2]/div[1]/div/div[3]/div[2]/a') + birthday_text = (By.XPATH, '//*[@id="body-pd"]/div[2]/section/div/div/div[2]/div[1]/div/div[4]/div[2]/p') + team_text = (By.XPATH, '//*[@id="body-pd"]/div[2]/section/div/div/div[2]/div[1]/div/div[5]/div[2]/p') + phone_number_text = (By.XPATH, '//*[@id="body-pd"]/div[2]/section/div/div/div[2]/div[1]/div/div[6]/div[2]/p') + socail_insurance_number_text = (By.XPATH, '//*[@id="body-pd"]/div[2]/section/div/div/div[2]/div[1]/div/div[7]/div[2]/p') + address_text = (By.XPATH, '//*[@id="body-pd"]/div[2]/section/div/div/div[2]/div[1]/div/div[8]/div[2]/p') + joining_date_text = (By.XPATH, '//*[@id="body-pd"]/div[2]/section/div/div/div[2]/div[1]/div/div[9]/div[2]/p') + location_text = (By.XPATH, '//*[@id="body-pd"]/div[2]/section/div/div/div[2]/div[1]/div/div[10]/div[2]/p') + joining_date_text = (By.XPATH, '//*[@id="body-pd"]/div[2]/section/div/div/div[2]/div[1]/div/div[9]/div[2]/p') + skills_list = (By.XPATH, '//*[@id="body-pd"]/div[2]/section/div/div/div[2]/div[2]/div[1]/div/div[2]') + + + \ No newline at end of file