20250904-初步功能已完成
This commit is contained in:
@@ -247,6 +247,7 @@ class AiUtils(object):
|
||||
@classmethod
|
||||
def getFollowButton(cls, session: Client):
|
||||
# followButton = 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]/Button[1]")
|
||||
session.appium_settings({"snapshotMaxDepth": 20})
|
||||
|
||||
followButton = session.xpath('//XCUIElementTypeButton[@name="关注" or @label="关注"]')
|
||||
|
||||
|
||||
@@ -240,7 +240,7 @@ def _force_utf8_everywhere():
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# _force_utf8_everywhere()
|
||||
_force_utf8_everywhere()
|
||||
|
||||
|
||||
# ========= 全局:强制 UTF-8 + 关闭缓冲(运行期立刻生效) =========
|
||||
|
||||
Reference in New Issue
Block a user