Identify the correct piece of code for executing a single tab function in Appium.

public static void function(Appium Driver driver, Mobile Element element){){ try { TouchActions action = new TouchActions(driver); action.singleTap(element); action.perform(); } catch (Exception e) { Log.fail("Unable to perform function" + e.getMessage(), driver); } }

public static void function(AndroidDriver driver, MobileElement element){){ try { TouchActions action = new TouchActions(driver); action.singleTap(element); action.perform(); } catch (Exception e) { Log.fail("Unable to perform function" + e.getMessage(), driver); } }

public static void function(AppiumDriver driver, MobileElement element){){ try { Actions action = new Actions(driver); action.singleTap(element); action.perform(); } catch (Exception e) { Log.fail("Unable to perform function" + e.getMessage(), driver); } }

public static void function(AppiumDriver driver, MobileElement element){){ try { Actions action = new Actions(driver); action.singleTap(element); action.perform(); } catch (Exception e) { Log.fail("Unable to perform function" + e.getMessage(), driver); }

Correct Option - a

To get all Infosys Certified Appium Tester Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in