io.selendroid.server.model.internal.execute_native
Class FindElementByAndroidTag

java.lang.Object
  extended by io.selendroid.server.model.internal.execute_native.FindElementByAndroidTag
All Implemented Interfaces:
NativeExecuteScript

public class FindElementByAndroidTag
extends Object
implements NativeExecuteScript

This class contains the functionality to find an Android view with the tag name assigned to it sample usage : WebElement element = (WebElement)webDriver.executeScript("findElementByAndroidTag", "view_test_tag");


Field Summary
protected  ViewHierarchyAnalyzer viewAnalyzer
           
 
Constructor Summary
FindElementByAndroidTag(KnownElements knownElements, ServerInstrumentation serverInstrumentation, KeySender keys)
           
 
Method Summary
 Object executeScript(org.json.JSONArray args)
           
protected  List<android.view.View> getTopLevelViews()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewAnalyzer

protected ViewHierarchyAnalyzer viewAnalyzer
Constructor Detail

FindElementByAndroidTag

public FindElementByAndroidTag(KnownElements knownElements,
                               ServerInstrumentation serverInstrumentation,
                               KeySender keys)
Method Detail

executeScript

public Object executeScript(org.json.JSONArray args)
Specified by:
executeScript in interface NativeExecuteScript

getTopLevelViews

protected List<android.view.View> getTopLevelViews()


Copyright © 2014. All rights reserved.