Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信4.0 无法获取到组件中的Name #297

Open
bird-9 opened this issue Nov 4, 2024 · 2 comments
Open

微信4.0 无法获取到组件中的Name #297

bird-9 opened this issue Nov 4, 2024 · 2 comments

Comments

@bird-9
Copy link

bird-9 commented Nov 4, 2024

最新的微信4.0 采用QT编写的. 已经无法获取到组件中的Name或Value属性了。有什么好的解决方案吗?>

@charleswh
Copy link

多打印点log ,用自带的或者自己写都行,让后用foundIndex去找

@bird-9
Copy link
Author

bird-9 commented Nov 6, 2024

多打印点log ,用自带的或者自己写都行,让后用foundIndex去找

不是说无法定位, 是元素本身就不渲染Name属性了。譬如下面是微信4.0 可以看到完全拿不到某个控件的Name或Value了。

Version:1.0 StartHTML:0000000128 EndHTML:0000004578 StartFragment:0000000128 EndFragment:0000004578 SourceURL:about:blank
ControlType: GroupControl    ClassName: mmui::ChatSessionCell    AutomationId: session_item    Rect: (801,237,1011,305)[210x68]    Name:     Handle: 0x0(0)    Depth: 15    ValuePattern.Value: ''    SupportedPattern: InvokePattern LegacyIAccessiblePattern ValuePattern
    ControlType: GroupControl    ClassName: mmui::ContactHeadView    AutomationId: session_item.avatar    Rect: (813,253,849,289)[36x36]    Name:     Handle: 0x0(0)    Depth: 16    ValuePattern.Value: ''    SupportedPattern: InvokePattern LegacyIAccessiblePattern ValuePattern
    ControlType: GroupControl    ClassName: QWidget    AutomationId: session_item.session_right_content    Rect: (859,249,999,293)[140x44]    Name:     Handle: 0x0(0)    Depth: 16    ValuePattern.Value: ''    SupportedPattern: InvokePattern LegacyIAccessiblePattern ValuePattern
        ControlType: GroupControl    ClassName: QWidget    AutomationId:     Rect: (859,251,999,272)[140x21]    Name:     Handle: 0x0(0)    Depth: 17    ValuePattern.Value: ''    SupportedPattern: InvokePattern LegacyIAccessiblePattern ValuePattern
            ControlType: GroupControl    ClassName: mmui::XTextView    AutomationId: session_name    Rect: (859,252,888,270)[29x18]    Name:     Handle: 0x0(0)    Depth: 18    ValuePattern.Value: ''    SupportedPattern: InvokePattern LegacyIAccessiblePattern ValuePattern
            ControlType: GroupControl    ClassName: mmui::XTextView    AutomationId: session_time    Rect: (0,0,0,0)[0x0]    Name:     Handle: 0x0(0)    Depth: 18    ValuePattern.Value: ''    SupportedPattern: InvokePattern LegacyIAccessiblePattern ValuePattern
        ControlType: GroupControl    ClassName: QWidget    AutomationId:     Rect: (859,273,999,293)[140x20]    Name:     Handle: 0x0(0)    Depth: 17    ValuePattern.Value: ''    SupportedPattern: InvokePattern LegacyIAccessiblePattern ValuePattern
            ControlType: GroupControl    ClassName: mmui::XTextView    AutomationId: session_desc    Rect: (859,273,999,293)[140x20]    Name:     Handle: 0x0(0)    Depth: 18    ValuePattern.Value: ''    SupportedPattern: InvokePattern LegacyIAccessiblePattern ValuePattern
    ControlType: GroupControl    ClassName: mmui::XSkiaWidget    AutomationId:     Rect: (829,244,869,261)[40x17]    Name:     Handle: 0x0(0)    Depth: 16    ValuePattern.Value: ''    SupportedPattern: InvokePattern LegacyIAccessiblePattern ValuePattern

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants