更改切换语言中设置的图标位置

This commit is contained in:
work
2025-06-24 13:57:25 +08:00
parent 17747b2e38
commit 1e5858e7c4

View File

@@ -754,7 +754,7 @@ def _change_language(page):
sleep(1, 2) sleep(1, 2)
# 点击切换语言 # 点击切换语言
page.wait_for_selector( page.wait_for_selector(
'i[style*="background-position: 0px -373px"][style*="https://static.xx.fbcdn.net/rsrc.php/v4/y9/r/6PURteH52fZ.png"]', 'i[style*="background-position: 0px -621px"][style*="https://static.xx.fbcdn.net/rsrc.php/v4/yY/r/yqlvyVYxGJ0.png"]',
timeout=10000).click(force=True) timeout=10000).click(force=True)
sleep(1, 2) sleep(1, 2)
# 点击英文 # 点击英文