-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.py
42 lines (28 loc) · 980 Bytes
/
main.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
from selenium import webdriver
import time
import os
from selenium.webdriver.chrome.options import Options
from homepage.open import *
from search_page.search import search_test
from homepage.signup import *
from homepage.signin import *
from shared.broken_link_check import *
from single_page.open_post import *
from single_page.interact import *
options = Options()
options.add_argument("--incognito")
driver = webdriver.Chrome(options=options)
open_homepage(driver)
# check_broken_link(driver)
# signup_test(driver)
signin_test(driver) # hcaptcha automation not implemented. solve it manually!
# check_broken_link(driver)
# tasks after signed in will be procced blow
#open_single_post(driver)
#interaction_test(driver)
# the search test below can be executed without signing in.
# one can comment out the signIn test above and only test for the search functionality.
# search_test(driver)
# all tasks are completed
print("All tasks are completed")
time.sleep(10)