# driver.findElements(By.className("")); didn't execute

**URL:** <https://discuss.appium.io/t/driver-findelements-by-classname-didnt-execute/28643>\
**Category:** Support\
**Created:** [November 18, 2019, 10:18am UTC](https://discuss.appium.io/t/driver-findelements-by-classname-didnt-execute/28643 "2019-11-18T10:18:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ROBERT\_RUSSELL\_MONSA](https://discuss.appium.io/user_avatar/discuss.appium.io/robert_russell_monsa/32/6705_2.png) [@ROBERT\_RUSSELL\_MONSA](https://discuss.appium.io/u/ROBERT_RUSSELL_MONSA)\
**Post date:** [November 18, 2019, 10:18am UTC](https://discuss.appium.io/t/driver-findelements-by-classname-didnt-execute/28643/1 "2019-11-18T10:18:34Z")

</div>

List variable = driver.findElements(By.className(“android.widget.RelativeLayout”));  
variable.get(0).click();

The said line didn’t execute even though there is a “import java.util.List;” library in the source code. It also didn’t indicate any kind of errors. The execution of code just suddenly stops. How can I solve this problem?
