This commit is contained in:
Administrator
2025-10-28 17:02:34 +08:00
parent 221b8c3af7
commit d4c7560be9

View File

@@ -123,7 +123,7 @@ class WeexTransaction:
return False
def to_do_page(self):
self.page.get("https://www.weeaxs.site/zh-CN/futures/demo-trading/ETH-SUSDT")
# 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()
time.sleep(1)
@@ -187,7 +187,7 @@ class WeexTransaction:
new_price_datas1 = sorted(new_price_datas, key=lambda x: x["id"])
kline_1, kline_2, kline_3 = new_price_datas1[-3:]
if self.page.ele('x://section[text()="仓位(1)"]', timeout=3):
if self.page.ele('x://section[text()="仓位(1)"]', timeout=15):
text = self.page.ele(
'x://*[@id="tradeLimitContainerJS"]/div[2]/div/div[1]/div/div/div/div[5]/div/div/div[2]').text
if "ETH/SUSDT 多" in text:
@@ -219,4 +219,4 @@ if __name__ == '__main__':
bit_id="8dcb4f744cf64ab190e465e153088515"
).action()
# //*[contains(text(), '特定文本')]
# //*[contains(text(), '特定文本')]