-
Notifications
You must be signed in to change notification settings - Fork 1
/
PagesFactory.py
79 lines (60 loc) · 2 KB
/
PagesFactory.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
from Pages import AllFreelancersCategoriesPage
from Pages import DeveloperTypesPages
from Pages import HowItWorksPage
from Pages import LoginPage
from Pages import MainPage
from Pages import SearchPage
from Pages import SignUpPage
from Pages import UpdatePage
from Pages import FindWorkPageAuthorized
class PagesFactory(object):
def __init__(self, driver):
self.driver = driver
@property
def main(self):
return MainPage.MainPage(self.driver)
@property
def all_freelance_categories(self):
return AllFreelancersCategoriesPage.AllFreelancersCategoriesPage(self.driver)
@property
def web_developers(self):
return DeveloperTypesPages.WebDeveloperPage(self.driver)
@property
def mobile_developers(self):
return DeveloperTypesPages.MobileDeveloperPage(self.driver)
@property
def designers(self):
return DeveloperTypesPages.DesignerPage(self.driver)
@property
def writers(self):
return DeveloperTypesPages.WritingPage(self.driver)
@property
def admins(self):
return DeveloperTypesPages.AdminSupportPage(self.driver)
@property
def customers_service(self):
return DeveloperTypesPages.CustomerServicePage(self.driver)
@property
def about(self):
return HowItWorksPage.HowItWorksAboutPage(self.driver)
@property
def about_freelancers(self):
return HowItWorksPage.HowItWorksFreelancerPage(self.driver)
@property
def about_clients(self):
return HowItWorksPage.HowItWorksClientPage(self.driver)
@property
def login(self):
return LoginPage.LoginPage(self.driver)
@property
def search(self):
return SearchPage.SearchPage(self.driver)
@property
def sign_up(self):
return SignUpPage.SignUpPage(self.driver)
@property
def update(self):
return UpdatePage.UpdatePage(self.driver)
@property
def find_work_authorized(self):
return FindWorkPageAuthorized.FindWorkPageAuthorized(self.driver)