# I am not getting option to use driver.findElementByUiAutomator

**URL:** <https://discuss.appium.io/t/i-am-not-getting-option-to-use-driver-findelementbyuiautomator/14474>\
**Category:** Issues/Bugs\
**Created:** [January 28, 2017, 11:03am UTC](https://discuss.appium.io/t/i-am-not-getting-option-to-use-driver-findelementbyuiautomator/14474 "2017-01-28T11:03:15Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Telmo\_Cardoso](https://discuss.appium.io/user_avatar/discuss.appium.io/telmo_cardoso/32/1435_2.png) [@Telmo\_Cardoso](https://discuss.appium.io/u/Telmo_Cardoso)\
**Post date:** [January 28, 2017, 4:29pm UTC](https://discuss.appium.io/t/i-am-not-getting-option-to-use-driver-findelementbyuiautomator/14474/4 "2017-01-28T16:29:08Z")

</div>

I always used my driver as AppiumDriver. You are using as RemoteWebDriver.

I’m not sure why you are using that, but if you cast it, it will work:

```
((AndroidDriver)driver).findElementByAndroidUIAutomator("...");

```

Look here also for more info on drivers:

> [@What is the use or difference between AndroidDriver, iOSDriver, AppiumDriver and Remote WebDriver](https://discuss.appium.io/t/what-is-the-use-or-difference-between-androiddriver-iosdriver-appiumdriver-and-remote-webdriver/8750):
>
> There are different types of drivers and I want to know their exact usages and purpose in which condition.

---

_[View the full topic](https://discuss.appium.io/t/i-am-not-getting-option-to-use-driver-findelementbyuiautomator/14474)._
