diff options
author | Kevin Jin <kjin@google.com> | 2013-11-11 10:18:23 -0800 |
---|---|---|
committer | Kevin Jin <kjin@google.com> | 2013-11-11 10:18:23 -0800 |
commit | d2abd0b28789a4a187343b0485e2b8e3fc9ef7ac (patch) | |
tree | 2ac4619f9bb3e7e6c54a18ee7769e418df805416 /to-uiautomator.xsl | |
parent | c39b04e0e5d3962153cd860d1430857fe625da90 (diff) | |
download | droiddriver-d2abd0b28789a4a187343b0485e2b8e3fc9ef7ac.tar.gz |
add VisibleBounds for debugging
Change-Id: Ie8d73605ae7f2527d95f0e10d10b461089431a8d
Diffstat (limited to 'to-uiautomator.xsl')
-rw-r--r-- | to-uiautomator.xsl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/to-uiautomator.xsl b/to-uiautomator.xsl index 7c68454..a78d33a 100644 --- a/to-uiautomator.xsl +++ b/to-uiautomator.xsl @@ -1,6 +1,5 @@ <?xml version="1.0"?> -<!-- To convert DroidDriver dump (say dd.xml) to UiAutomatorViewer format (say ua.uix), run: - xsltproc -o ua.uix to-uiautomator.xsl dd.xml --> +<!-- To convert DroidDriver dump (say dd.xml) to UiAutomatorViewer format (say ua.uix), run: xsltproc -o ua.uix to-uiautomator.xsl dd.xml --> <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:strip-space elements="*" /> <xsl:template match="/"> @@ -27,6 +26,14 @@ <xsl:attribute name="password"><xsl:value-of select="boolean(@password)" /></xsl:attribute> <xsl:attribute name="selected"><xsl:value-of select="boolean(@selected)" /></xsl:attribute> <xsl:attribute name="bounds"><xsl:value-of select="@bounds" /></xsl:attribute> + <!-- These two attributes are added by DroidDriver to help diagnosis --> + <!-- They are intentionally named in a different style --> + <xsl:if test="@NotVisible"> + <xsl:attribute name="NotVisible">true</xsl:attribute> + </xsl:if> + <xsl:if test="@VisibleBounds"> + <xsl:attribute name="VisibleBounds"><xsl:value-of select="@VisibleBounds" /></xsl:attribute> + </xsl:if> <xsl:apply-templates /> </node> </xsl:template> |