Skip to content

Commit

Permalink
add page locators
Browse files Browse the repository at this point in the history
  • Loading branch information
MahmoudRedaSayed committed Aug 24, 2023
1 parent e33f482 commit 09b8341
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pages/profile.py
Original file line number Diff line number Diff line change
@@ -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]')



0 comments on commit 09b8341

Please sign in to comment.