-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDefault.toml
79 lines (64 loc) · 3.07 KB
/
Default.toml
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
#newegg_chrome_user_data_template = "TEMPLATE_NEWEGG_CHROME_USER_DATA"
#amazon_chrome_user_data_template = "TEMPLATE_AMAZON_CHROME_USER_DATA"
should_login = true
should_amazon = true
should_newegg = true
newegg_sign_in_url = "https://secure.newegg.com/NewMyAccount/AccountLogin.aspx?nextpage=https%3A%2F%2Fsecure.newegg.com%2Fshop%2Fcart"
data = "joinem_data"
webdriver_url = "http://localhost:9515"
refresh_seconds = 15
cvv_selector = "input[type='text'].mask-cvv-4"
username_selector = "labeled-input-signEmail"
password_selector = "labeled-input-password"
survey_selector = "a.centerPopup-trigger-close"
sign_in_submit_selector = "#signInSubmit"
insurance_selector = "div[role='dialog'] div[role='document'] div button[data-dismiss='modal']"
promotion_selector = "div[role='dialog'] div[role='document'] div div div button[data-dismiss='modal']"
continue_to_payment_selector = "div[data-status='add'] button.btn-primary"
view_cart_selector = "button[title='View Cart & Checkout'].btn-primary"
add_to_cart_selector = "div#ProductBuy button.btn-primary"
secure_checkout_selector = "form div.summary-actions button.btn-primary"
ec_frame_selector = "iframe[title='ec_payment']"
card_number_selector = "input[type='text'].mask-cardnumber"
save_selector = "button.btn-primary"
sign_in_selector = "div.nav-complex div.nav-complex-title"
success_selector = "a[title='View order detail in a new window.']"
args = [
"--disable-gpu",
"--no-sandbox",
"--disable-dev-shm-usage",
#"--headless"
]
linux_chrome_bin_default = "/usr/bin/chromium-browser"
macos_chrome_bin_default = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
windows_chrome_bin_default = "%ProgramFiles%\\Google\\Application\\chrome.exe"
# Latest windows version of chrome doesn't support webdriver yet.
# We have to use canary instead for now
windows_canary_bin_default = "%LOCALAPPDATA%\\Google\\Chrome\\ SxS\\Application\\chrome.exe"
other_chrome_bin_default = "/usr/bin/chromium"
# https://chromium.googlesource.com/chromium/src/+/master/docs/user_data_dir.md
# These user data directories are checked.
#
# windows
# [x] [Chrome] %LOCALAPPDATA%\Google\Chrome\User Data
# [Chrome Canary] %LOCALAPPDATA%\Google\Chrome SxS\User Data
# [Chromium] %LOCALAPPDATA%\Chromium\User Data
#
# macOS
# [x] [Chrome] ~/Library/Application Support/Google/Chrome
# [Chrome Canary] ~/Library/Application Support/Google/Chrome Canary
# [Chromium] ~/Library/Application Support/Chromium
#
# linux
# [x] [Chrome Stable] ~/.config/google-chrome
# [Chrome Beta] ~/.config/google-chrome-beta
# [Chrome Dev] ~/.config/google-chrome-unstable
# [x] [Chromium] ~/.config/chromium
#
linux_chrome_user_data_default = "~/.config/google-chrome"
macos_chrome_user_data_default = "~/Library/Application Support/Google/Chrome"
windows_chrome_user_data_default = "%LOCALAPPDATA%\\Google\\Chrome\\User Data"
# Latest windows version of chrome doesn't support webdriver yet.
# We have to use canary instead for now
windows_canary_user_data_default = "%LOCALAPPDATA%\\Google\\Chrome SxS\\User Data"
other_chrome_user_data_default = "~/.config/chromium"