0 Replies
      Latest reply on Apr 11, 2019 6:50 AM by huabeibei
      huabeibei Level 1 Level 1 (0 points)

        when debug in the webview, use 'po app', following tree was printed:

         

        Attributes: Application, pid: 8894, label: 'WeChat'

        Element subtree:

        →Application, 0x170381fb0, pid: 8894, label: 'WeChat'

            Window (Main), 0x170384780, {{0.0, 0.0}, {375.0, 667.0}}

              Other, 0x17019f480, {{0.0, 0.0}, {375.0, 667.0}}

                    Other, 0x170382630, {{0.0, 0.0}, {375.0, 667.0}}

                      NavigationBar, 0x170382080, {{0.0, 20.0}, {375.0, 44.0}}, identifier: 'pinduoduo'

                        Button, 0x170381e10, {{0.0, 20.0}, {56.0, 44.0}}, label: 'Close'

                        Other, 0x170382220, {{187.0, 24.0}, {1.0, 36.0}}, label: 'pinduoduo'

                        Button, 0x1703822f0, {{319.0, 20.0}, {56.0, 44.0}}, label: 'More'

                      Other, 0x1703823c0, {{0.0, 0.0}, {375.0, 667.0}}

                        Other, 0x170382490, {{0.0, 0.0}, {375.0, 667.0}}

                          Other, 0x170382150, {{0.0, 0.0}, {375.0, 667.0}}

                                Other, 0x170383f60, {{0.0, 0.0}, {375.0, 64.0}}

                            Image, 0x170384100, {{0.0, 64.0}, {375.0, 100.0}}

                            Other, 0x174382560, {{0.0, 64.0}, {375.0, 603.0}}

                              WebView, 0x174380f70, {{0.0, 64.0}, {375.0, 603.0}}

                                Other, 0x174380ea0, {{0.0, 64.0}, {375.0, 8667.0}}

                                  Other, 0x174380d00, {{0.0, 0.0}, {0.0, 0.0}}

                                    Other, 0x174380750, {{0.0, 0.0}, {0.0, 0.0}}

                                      Other, 0x174380820, {{0.0, 64.0}, {375.0, 603.0}}

                                          Other, 0x174380680, {{0.0, 64.0}, {375.0, 42.0}}

                                          Other, 0x174380a90, {{0.0, 64.0}, {375.0, 51.0}}

                                            Other, 0x174380b60, {{14.0, 64.0}, {32.0, 42.0}}

                                          Image, 0x17419f890, {{0.0, 106.0}, {375.0, 140.0}}

                                          Other, 0x174382150, {{0.0, 106.0}, {375.0, 140.0}}

                                            Other, 0x174381a00, {{0.0, 106.0}, {375.0, 140.0}}

                                              Image, 0x174381520, {{0.0, 106.0}, {375.0, 140.0}}

                                            Other, 0x174380dd0, {{0.0, 106.0}, {375.0, 140.0}}

                                              Image, 0x170383c20, {{0.0, 106.0}, {375.0, 140.0}}

                                            Other, 0x170383a80, {{375.0, 106.0}, {375.0, 140.0}}

                                              Image, 0x1703805b0, {{375.0, 106.0}, {375.0, 140.0}}

                                          Other, 0x1703801a0, {{0.0, 230.0}, {375.0, 18.0}}

                                            Other, 0x1703839b0, {{257.0, 231.0}, {6.0, 6.0}}

                                            Other, 0x170383b50, {{269.0, 231.0}, {6.0, 6.0}}

                                            Other, 0x170384510, {{281.0, 231.0}, {6.0, 6.0}}

                                            Other, 0x170384030, {{293.0, 231.0}, {6.0, 6.0}}

                                            Other, 0x1703841d0, {{305.0, 231.0}, {6.0, 6.0}}

                                            Other, 0x1703842a0, {{317.0, 231.0}, {6.0, 6.0}}

                                            Other, 0x170384440, {{329.0, 231.0}, {6.0, 6.0}}

                                            Other, 0x170384370, {{341.0, 231.0}, {6.0, 6.0}}

                                            Other, 0x170381ee0, {{353.0, 231.0}, {6.0, 6.0}}

         

        How do I locate the last other element?

         

        Other, 0x170381ee0, {{353.0, 231.0}, {6.0, 6.0}}

         

        what is 0x170381ee0?

        and  {{353.0, 231.0}, {6.0, 6.0}} meas left up point and right bottom point's coordinate?