Page tree
Skip to end of metadata
Go to start of metadata

Description

Send text to an element


Parameters

Name

Value

Description

Zone
  • NATIVE
  • WEB
  • TEXT
Zones which define the way the element will be identified.
ElementElement Identifier as String

Identification of Element in the device screen.

Identification can be XPATH or any other Appium Element Identifier

IndexElement index as IntegerIndex of Element
TextStringText to Send

Usage

Set Experitest Url

Please make sure you replace <EXPERITEST_URL> with appropriate URL in the sample code below.

Example

ElementSendText
DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<EXPERITEST_URL>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "deviceid");
     
...
...
 
//show the list of recent apps
seetest.elementSendText("NATIVE", "//*[@accessibilityLabel='Username']" , 0 , "company");




  • No labels