-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprev_page.py
152 lines (104 loc) · 4 KB
/
prev_page.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
import pages as page
import jobs as job
import profile as pf
import friends as friend
import messages as mssg
import registration as reg
import training as train
def previous():
# pull up previous
page.pagesVisited.pop()
# last element in list
print(page.pagesVisited[-1] + "\n")
if page.pagesVisited[-1] == "homepage":
page.homepage()
if page.pagesVisited[-1] == "mainpage":
page.mainPage()
elif page.pagesVisited[-1] == "skills":
page.skillsPage()
elif page.pagesVisited[-1] == "python":
page.pythonPage()
elif page.pagesVisited[-1] == "java":
page.javaPage()
elif page.pagesVisited[-1] == "c":
page.cPage()
elif page.pagesVisited[-1] == "c++":
page.cppPage()
elif page.pagesVisited[-1] == "ruby":
page.rubyPage()
elif page.pagesVisited[-1] == "jobs":
job.jobPage()
elif page.pagesVisited[-1] == "jobsSelect":
job.jobSelectPage()
elif page.pagesVisited[-1] == "post a job":
job.post_job_page()
elif page.pagesVisited[-1] == "friends":
friend.friendsPage()
elif page.pagesVisited[-1] == "findfriends":
friend.findfriendsPage()
elif page.pagesVisited[-1] == "useful links":
page.usefulLinksPage()
elif page.pagesVisited[-1] == "important links":
page.importantLinksPage()
elif page.pagesVisited[-1] == "general":
page.generalPage()
elif page.pagesVisited[-1] == "browse in college":
page.browseInCollegePage()
elif page.pagesVisited[-1] == "business solutions":
page.businessSolutionsPage()
elif page.pagesVisited[-1] == "directories":
page.directories()
elif page.pagesVisited[-1] == "copyright notice":
page.copyrightNotice()
elif page.pagesVisited[-1] == "about":
page.about()
elif page.pagesVisited[-1] == "accessibility":
page.accessibility()
elif page.pagesVisited[-1] == "user agreement":
page.userAgreement()
elif page.pagesVisited[-1] == "privacy policy":
page.privacyPolicy()
elif page.pagesVisited[-1] == "cookie policy":
page.cookiePolicy()
elif page.pagesVisited[-1] == "copyright policy":
page.copyRightPolicy()
elif page.pagesVisited[-1] == "brand policy":
page.brandPolicy()
elif page.pagesVisited[-1] == "guest controls":
page.guestControls()
elif page.pagesVisited[-1] == "help center":
page.helpCenterPage()
elif page.pagesVisited[-1] == "press":
page.pressPage()
elif page.pagesVisited[-1] == "blog":
page.BlogPage()
elif page.pagesVisited[-1] == "carrier":
page.carrierPage()
elif page.pagesVisited[-1] == "developer":
page.devPage()
elif page.pagesVisited[-1] == "profile":
page.profilePage()
elif page.pagesVisited[-1] == "messages":
mssg.messagesPage(reg.username)
elif page.pagesVisited[-1] == "inbox":
mssg.inbox()
elif page.pagesVisited[-1] == "view pending requests":
friend.view_pending_requests(reg.username)
elif page.pagesVisited[-1] == "sendMessages":
mssg.sendMessage(reg.username)
elif page.pagesVisited[-1] == "showFriends":
mssg.sendToFriendsFriends()
elif page.pagesVisited[-1] == "showEveryOne":
mssg.showEveryOne()
elif page.pagesVisited[-1] == "training":
page.training()
elif page.pagesVisited[-1] == "inCollege Learning":
train.inCollegeLearningPage()
# elif page.pagesVisited[-1] == "courses":
# train.inCollegeLearningPage()
# elif page.pagesVisited[-1] == "aboutProfile":
# page.profilePage()
# elif page.pagesVisited[-1] == "experience":
# page.profilePage()
# elif page.pagesVisited[-1] == " view-profile":
# pf.viewProfile()