Difference between FIndElementByID and FIndElementByAccessibilityID

1,796 views
Skip to first unread message

Venkatesh Ch

unread,
Jun 13, 2014, 6:13:47 AM6/13/14
to appium-...@googlegroups.com
Hello All.
I am curios to know what actually difference exists between FIndElementByID and FIndElementByAccessibilityID ?
In what scenarios  we use  FIndElementByAccessibilityID 
Please share your Knowledge on this.

Thanks 

bootstrap online

unread,
Jun 13, 2014, 9:29:37 AM6/13/14
to Venkatesh Ch, appium-...@googlegroups.com
FIndElementByID looks for all ids. AccessibilityID is only one type of id

Kamesh Raj Velu

unread,
Jun 13, 2014, 9:40:37 AM6/13/14
to bootstrap online, Venkatesh Ch, appium-...@googlegroups.com
Is  FIndElementByAccessibilityID faster than FIndElementByID?


On Fri, Jun 13, 2014 at 6:29 AM, bootstrap online <ma...@bootstraponline.com> wrote:
FIndElementByID looks for all ids. AccessibilityID is only one type of id

--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/d/optout.



--
 --------------------------------------------
 __0/  "A ten thousand miles journey begins
   /_    with a single step. That single step
`\/  \,  has to be taken from where you are"

http://www.kameshraj.com

bootstrap online

unread,
Jun 13, 2014, 9:49:10 AM6/13/14
to Kamesh Raj Velu, Venkatesh Ch, appium-...@googlegroups.com
They should be the same speed in appium 1.2 (not yet released). I
optimized FindElementByID. In the current appium release,
FindElementByAccessibilityID will be about twice as fast.

David Turner

unread,
Jul 23, 2014, 6:07:22 PM7/23/14
to appium-...@googlegroups.com, kames...@gmail.com, chvenk...@gmail.com
For android at least FIndElementByID uses the resource-id: to find things. as of 1.2.0 

driver.findElementById("com.google.android.youtube:id/ok"); 

would give you the OK button on the youtube app

Jeffrey Blaze

unread,
Jul 23, 2014, 8:47:55 PM7/23/14
to appium-...@googlegroups.com
How does one call those methods? All I see for a RemoteWebDriver are findElement and findElements

Narasimha Rao

unread,
Jul 24, 2014, 1:22:44 AM7/24/14
to appium-...@googlegroups.com
Hai 

 if we wana use FindElementByAccessibilityID() which id we are suppose to give can we give the resource id here also  

Barnabás Oláh

unread,
Jul 24, 2014, 3:22:03 AM7/24/14
to appium-...@googlegroups.com

Which platform?

On Android findElement(s)ByAccessabilityId() searching for the given string in the contentDescription tag. <-- there is somethink like this called on iOS, too. As I remember it's hint or label.

David Turner

unread,
Jul 24, 2014, 3:35:01 PM7/24/14
to Barnabás Oláh, appium-...@googlegroups.com
As of 1.0 release you need create "protected static AppiumDriver"
driver not a RemoteWebDriver.

AppiumDriver is a extension of RWD and includes the new functions.

http://appium.io/slate/en/v1.0.0/?java#toc_100
> --
> http://appium.io
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Appium-discuss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/appium-discuss/WlNXHjplNlE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
Reply all
Reply to author
Forward
0 new messages