Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Example Actions on Mobile Elements

Category: Appium

Click
Click element at its center point.
MobileElement el = driver.findElementByAccessibilityId(“SomeId”);
el.click();

Send Keys
Send a sequence of key strokes to an element
MobileElement element = (MobileElement) driver.findElementByAccessibilityId(“SomeAccessibilityID”);
element.sendKeys(“Hello world!”);

Clear Element
Clear an element’s value
MobileElement element = (MobileElement) driver.findElementByAccessibilityId(“SomeAccessibilityID”);
element.clear();

Leave a Reply

Your email address will not be published. Required fields are marked *