-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
23 lines (21 loc) · 1008 Bytes
/
config.py
File metadata and controls
23 lines (21 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from env import *
delay = 0.05
buyButtonID = "btn-comprar"
checkoutButtonXPath = '/html/body/main/div[4]/div/div[4]/a'
loginElementID = "anchor-acessar-unite-oauth2"
loginFrameID = "nike-unite-oauth2-iframe"
loginFrameErrorXPath = "/html/body/div[3]/div"
paymentButtonXPath = "//*[@id='seguir-pagamento']"
confirmAddressXPath = "/html/body/div[15]/div/div/div[3]/button[1]"
alternativeConfirmAddressXPath = "/html/body/div[14]/div/div/div[3]/button[1]"
cardsDivID = "cartoes-salvos"
cardClassName = "select-cta-option"
termsCheckboxXPath = "/html/body/main/div/div[3]/div[8]/div[2]/div[3]/div/input"
termsDivXPath = "/html/body/main/div/div[3]/div[8]/div[2]/div[3]/div"
finalButtonID = "confirmar-pagamento"
remindMeButtonID = "btn-avisar"
smsAPIURL = "http://sms-handler-com.umbler.net/sms/"+phoneNumber
confirmSMSButtonXPath = "/html/body/div[22]/div/div/div[2]/form[2]/div[2]/button[1]"
sizeXPaths = []
for x in range(0, len(sizes)):
sizeXPaths.append("//label[@for='tamanho__id"+str(sizes[x])+"']")