java—当没有web url或网页,但提供了用于报告目的的pdf概述图像时,如何从android web视图中识别元素

2cmtqfgy  于 2021-07-03  发布在  Java
关注(0)|答案(0)|浏览(183)

我们正在自动化一个本机应用程序,这是完全离线的应用程序,他们已经实现了一个报告页,这是pdf概述webview部分。我在webview中找不到任何要验证的元素。当我查看页面源代码时,我可以看到下面代码中突出显示的一些图像链接。
有谁能建议如何识别webview图像中的元素吗。
提前谢谢

<android.widget.FrameLayout index="1" package="com.skf.shaft" class="android.widget.FrameLayout" text="" resource-id="com.skf.shaft:id/container" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,92][800,1280]" displayed="true">
    <android.widget.FrameLayout index="0" package="com.skf.shaft\" class="android.widget.FrameLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,92][800,1280]" displayed="true">
        <android.webkit.WebView index="0" package="com.skf.shaft" class="android.webkit.WebView" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,92][800,1280]" displayed="true">
            <android.webkit.WebView index="0" package="com.skf.shaft" class="android.webkit.WebView" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="true" focused="true" long-clickable="false" password="false" scrollable="true" selected="false" bounds="[0,92][800,1280]" displayed="true">
                <android.view.View index="0" package="com.skf.shaft" class="android.view.View" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[5,97][741,1194]" displayed="true">
                      **<android.view.View index="0" package="com.skf.shaft" class="android.view.View" text="" content-desc="Fn6+rqq6gaA%0AHtFVLZ3p+2lBKE+c2hNt5M0R" checkable="false" checked="false" clickable="true" enabled="true" focusable="true" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[5,127][800,1184]" displayed="true">**
                        **<android.widget.Image index="0" package="com.skf.shaft" class="android.widget.Image" text="Fn6+rqq6gaA%0AHtFVLZ3p+2lBKE+c2hNt5M0R" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[35,127][770,1149]" displayed="true" />**
                    </android.view.View>
                </android.view.View>
            </android.webkit.WebView>
        </android.webkit.WebView>
    </android.widget.FrameLayout>
</android.widget.FrameLayout>

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题