find all child elements

408 views
Skip to first unread message

idan.hav

unread,
Aug 14, 2014, 9:07:00 AM8/14/14
to appium-...@googlegroups.com
hi all,

i'm trying to upgrade from Appium 0.16 to 1.2
i have used webElement.findElements(By.xpath("*")) in the old version to get a webElement's child elements
i understand it's not supported now, any ideas how to pull it off?

also, is there a documentation specifying the different locator strategies with the new Appium? 
all i've seen is general description and a few examples on appium.io

thanks in advance

Idan

Jonah Stiennon

unread,
Aug 14, 2014, 6:06:31 PM8/14/14
to appium-...@googlegroups.com
You can use By.xpath("//*") to get all elements. This has been fixed for version 1.2.2 (releasing soon)

Are the examples on appium.io not enough? What would you like to have?

idan.hav

unread,
Aug 17, 2014, 3:42:13 AM8/17/14
to appium-...@googlegroups.com
What is 1.2.2 version's release date (approximately) ?

The examples are great and are very informative, it's just that i'm new to automation and my first experience is writing test using Appium for ios using Java, so i don't have prior experience with UIAutomation or web automation so what i'm seeing in the examples constitutes 
most of my knowledge in that area. i think a comprehensive tutorial might come in handy

on the same note, are CSS selectors supported? and if so, can you please add an example for it?

Thanks for the help!


בתאריך יום שישי, 15 באוגוסט 2014 01:06:31 UTC+3, מאת Jonah Stiennon:

bootstrap online

unread,
Aug 17, 2014, 10:03:47 AM8/17/14
to idan.hav, appium-...@googlegroups.com
On Sun, Aug 17, 2014 at 3:42 AM, idan.hav <idan....@gmail.com> wrote:
>
> on the same note, are CSS selectors supported? and if so, can you please add
> an example for it?

they're supported for the web context. The native context doesn't use
css so it won't work thee.
Reply all
Reply to author
Forward
0 new messages