Skip to content

ImageView Support #147

Description

@qingyuanxingsi

During my use of AndroidViewClient, I've found that AndroidViewClient can not well support ImageView component?Can ImageView be supported?Or I did not use the tool properly?

Activity

  1. dtmilano commented on Jun 3, 2015

    @dtmilano
    Owner

    Please be more specific about the problem. Show some source code, expectation, results, etc.
    Also specify versions (AVC, android, etc.) and device.

  2. qingyuanxingsi commented on Jun 6, 2015

    @qingyuanxingsi
    Author

    I'm using Google Nexus 6 for the testing.
    When running the following code:

    
        emu_name = 'ZX1G42967G'
        _device, _serialno = ViewClient.connectToDeviceOrExit(serialno=emu_name)
        viewClient = ViewClient(_device, _serialno)
        viewClient.traverse()
    

    I cannot get most of the ImageView components in current view(while I can see the ImageView components by using uiautomatorviewer tool in Android sdk)
    The application for testing is Wandoujia which can be downloaded at http://www.wandoujia.com/, you can choose any comment activity of any application for testing use.

  3. Diob commented on Jan 12, 2016

    @Diob

    You could try:

    views = vc.findViewsWithAttribute('class', android.widget.ImageView)

    And then do something like:
    views[0].touch()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions