ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #06109
Re: Autopilot: Get dynamic elements contained within a ListView
On Thu, Jan 23, 2014 at 05:40:04PM +0000, Iain Lane wrote:
> On Wed, Jan 22, 2014 at 03:59:50PM -0600, Leo Arias wrote:
> […]
> Sorry for the annoying questions, but I have another one now --- I can
> expand the ItemSelector from AP (modulo bug #1271969 which I worked
> around by calculating the coordinates), but then I don't know how to get
> at the items in it. The introspection tree is
> <http://paste.ubuntu.com/6804028/> (warning: huge) — I want to click the
> "By size" label. Trying item_selector.select_single(text="By size")
> doesn't find it. Is it because it's down a few levels of the tree? The
> code is "ItemSelector { … model: ["By name", "By size"] }" which I don't
> know how to attach ObjectNames to.
FTR, Leo helped me solve this (thanks). You need to pass the class as a
string parameter to select_single:
item_selector.select_single('Label', text="By size")
then it works.
--
Iain Lane [ iain@xxxxxxxxxxxxxxxxxxx ]
Debian Developer [ laney@xxxxxxxxxx ]
Ubuntu Developer [ laney@xxxxxxxxxx ]
Attachment:
signature.asc
Description: Digital signature
References