-
Notifications
You must be signed in to change notification settings - Fork 12
/
xpath.py
11 lines (10 loc) · 1015 Bytes
/
xpath.py
1
2
3
4
5
6
7
8
9
10
11
STOCK_NAME = "/html/body/div[2]/div[2]/div/div/div[1]/div[1]/div/div/div/div/div[1]/div/div"
STOCK_FULL_NAME = "/html/body/div[2]/div[1]/div[2]/div[1]/div/table/tr[1]/td[2]/div/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]"
OPEN = "/html/body/div[2]/div[1]/div[2]/div[1]/div/table/tr[1]/td[2]/div/div[1]/div[1]/div[1]/div[2]/div/div[2]/div[2]"
HIGH = "/html/body/div[2]/div[1]/div[2]/div[1]/div/table/tr[1]/td[2]/div/div[1]/div[1]/div[1]/div[2]/div/div[3]/div[2]"
LOW = "/html/body/div[2]/div[1]/div[2]/div[1]/div/table/tr[1]/td[2]/div/div[1]/div[1]/div[1]/div[2]/div/div[4]/div[2]"
CLOSE = "/html/body/div[2]/div[1]/div[2]/div[1]/div/table/tr[1]/td[2]/div/div[1]/div[1]/div[1]/div[2]/div/div[5]/div[2]"
REPLAY_BUTTON = "/html/body/div[2]/div[2]/div/div/div[1]/div[1]/div/div/div/div/div[9]/div"
PLAY_PAUSE_SCRIPT = '$(".tv-replay-toolbar__button")[1].click()'
LAST_BAR_CHECK = 'return $(".tv-replay-toolbar__button")[1].classList.contains("i-disabled");'
FWD_BAR_SCRIPT = '$(".tv-replay-toolbar__button")[2].click()'