What script to refresh the page until the item is available
Posted: Thu May 27, 2021 6:57 am
Hi all ! I'm trying to make a macro/bot for this shopping website so i can get the items i want without siting there clicking all day long. I have been trying to make something in this program where i can have it refresh the page until the item is available then have it add to cart and buy. I want the script to check the page until the item is there and buy it. The page has to refresh a lot because the items sell within 1-3 sec of being posted. Also I want to buy 2 items everytime when it is available.
VERSION BUILD=1011 RECORDER=CR
WAIT SECONDS=1
URL GOTO=https://shopee.com.my/
TAG POS=1 TYPE=BUTTON ATTR=TXT:buy<SP>now
TAG POS=1 TYPE=BUTTON ATTR=TXT:checkout
TAG POS=1 TYPE=SPAN ATTR=TXT:ShopeePay
TAG POS=1 TYPE=BUTTON ATTR=TXT:place<SP>order
So far with the above script , I will always stuck and got the below error msg
RuntimeError: element BUTTON specified by TXT:checkout was not found, line: 5
Appreciate any help. Thank you so much!
VERSION BUILD=1011 RECORDER=CR
WAIT SECONDS=1
URL GOTO=https://shopee.com.my/
TAG POS=1 TYPE=BUTTON ATTR=TXT:buy<SP>now
TAG POS=1 TYPE=BUTTON ATTR=TXT:checkout
TAG POS=1 TYPE=SPAN ATTR=TXT:ShopeePay
TAG POS=1 TYPE=BUTTON ATTR=TXT:place<SP>order
So far with the above script , I will always stuck and got the below error msg
RuntimeError: element BUTTON specified by TXT:checkout was not found, line: 5
Appreciate any help. Thank you so much!