This commit is contained in:
Administrator
2025-11-03 18:45:02 +08:00
parent 0c121c6caa
commit aa4f6413ee

View File

@@ -172,9 +172,9 @@ class WeexTransaction:
def to_do_page(self):
# self.page.get("https://www.weeaxs.site/zh-CN/futures/demo-trading/ETH-SUSDT")
self.page.ele('x://*[@id="guide-order-type"]/div[2]/div/div[2]', timeout=15).click()
self.page.ele('x://*[contains(text(), "市价")]', timeout=15).click()
time.sleep(1)
self.page.ele('x://*[@id="guide-order-type"]/div[5]/div/div[2]/div[1]/input[2]').input(100)
self.page.ele('x://input[@placeholder="请输入数量"]').input(100)
time.sleep(1)
if self.direction == "long" and not self.start: