-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
25 lines (21 loc) · 908 Bytes
/
config.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
from selenium import webdriver
base_url = 'https://www.makemytrip.com/flights/'
#depart = input("Enter city to depart from")
#arrive = input("Enter city to arrive at")
#departure_date = input("Enter date in the format of day month day year")
#secure = input("Do you want to secure your trip with insurance(y/n)")
#covid = input("Do you want to opt for covid test to skip quarantie(y/n)")
depart = 'Pune'
arrive = 'Bangalore'
departure_date = 'Fri Dec 10 2021'
secure = 'y'
covid = 'y'
def get_chrome_web_driver(options):
#return webdriver.Chrome('./chromedriver',chrome_options = options)
return webdriver.Edge(executable_path = 'msedgedriver.exe')
def get_web_driver_options():
return webdriver.ChromeOptions()
#def set_browser_as_incognito(options):
# options.add_argument('--incognito')
def set_ignore_certificate_error(options):
options.add_argument('--ignore-certificate-errors')