This commit is contained in:
Administrator
2025-10-29 10:26:37 +08:00
parent 3e51bd16d6
commit 007b8a412d

View File

@@ -135,9 +135,15 @@ class WeexTransaction:
elif self.direction == "short" and not self.start:
self.page.ele('x://span[normalize-space()="卖出开空"]').click()
elif self.direction == "long" and self.start == -1:
self.page.ele('x://div[normalize-space()="反手"]').click()
self.page.ele('x://*[contains(text(), "闪电平仓")]').scroll.to_see(center=True)
self.page.ele('x://*[contains(text(), "闪电平仓")]').click()
time.sleep(3)
self.page.ele('x://span[normalize-space()="买入开多"]').click()
elif self.direction == "short" and self.start == 1:
self.page.ele('x://div[normalize-space()="反手"]').click()
self.page.ele('x://*[contains(text(), "闪电平仓")]').scroll.to_see(center=True)
self.page.ele('x://*[contains(text(), "闪电平仓")]').click()
time.sleep(3)
self.page.ele('x://span[normalize-space()="卖出开空"]').click()
def action(self):