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 [ i...@orangesquash.org.uk ] Debian Developer [ la...@debian.org ] Ubuntu Developer [ la...@ubuntu.com ]
signature.asc
Description: Digital signature
-- Mailing list: https://launchpad.net/~ubuntu-phone Post to : ubuntu-phone@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp