20250904-初步功能已完成
This commit is contained in:
@@ -253,16 +253,15 @@ class AiUtils(object):
|
||||
# 查找发消息按钮
|
||||
@classmethod
|
||||
def getSendMesageButton(cls, session: Client):
|
||||
# msgButton = session.xpath("//Window[1]/Other[1]/Other[1]/Other[1]/Other[1]/Other[1]/Other[1]/Other[1]/Other[1]/Other[1]/Other[2]/Other[2]/Other[1]/Other[1]/Other[3]/Other[1]/Other[1]")
|
||||
|
||||
# msgButton = session.xpath(
|
||||
# '//XCUIElementTypeButton[@name="发消息" or @label="发消息"]')
|
||||
|
||||
msgButton = session.xpath(
|
||||
'//XCUIElementTypeButton['
|
||||
'(@name="发消息" or @label="发消息" or @name="发送 👋" or @label="发送 👋")'
|
||||
'(@name="发消息" or @label="发消息" or '
|
||||
'@name="发送 👋" or @label="发送 👋" or '
|
||||
'@name="消息" or @label="消息")'
|
||||
' and @visible="true"]'
|
||||
)
|
||||
|
||||
if msgButton.exists:
|
||||
print("3.发消息按钮找到了")
|
||||
LogManager.info("3.发消息按钮找到了")
|
||||
|
||||
Reference in New Issue
Block a user