Unable to Execute Appium studio - driver.deviceAction("Home"); from framework

Hi Support Team,

i am using Hybrid Framework in Eclipse and used Appium (1.4.13) and created mobile execute methods and working fine.please see the sample code which was working fine

public String Mobileclick(AppiumDriver driver, String objRef, String data)
        throws Exception {

    System.out.println("Mobileclickr objRef "+objRef);
    WebElement element = mobileobject(objRef, driver);
    System.out.println("Mobileclickr element");
    //driver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);
    WebDriverWait wait = new WebDriverWait(driver, 30);
    System.out.println("Mobileclickr WebDriverWait");
    //wait.until(ExpectedConditions.visibilityOf(element));
    element.click();
    return Constants.KEYWORD_PASS;
}

after configured Appium Studio , existing methods are working fine but when i created new method with driver.deviceAction , displaying error " unable to execute methed driver.deviceAction(“Home”);
please find the code below:

public String MobileAppExit(SeeTestAndroidDriver driver)
        throws Exception {
    
    driver.deviceAction("Home");
    
    return Constants.KEYWORD_PASS;
}

its throwing error " unable to execute keywords, please let me know if i am missing any thing?
how to resolve this issue?

is it android or ios?

its on Android device

Hi Ravi,

I’m not able to reproduce this issue.

Just a quick question -

Are you trying to run with Appium Server up? or only Appium Studio?

Can you please share with us the StackTrace of the exception?

Thanks :slight_smile:
Tom

Hi Tom,

running with Appium Studio , not with Appium server.
earlier complete framework created based on Appium server and created methods like Mobileclick,
MobilewriteInputnav, ClickAndNavigateBack and etc…and all methods are working fine with appium server in real Android/iod devices.
now i had used Appium studio integrated with framework and existing methods are working fine with appium studio and executed on real android/ios device.
with appium studio i had seen there is action buttons like driver.deviceAction(“Home”), for this action i had created method and when i am calling this function , its not executing from framework, other than this functions working fine, which is related to Experitest functions are not working in appium studio.

i had tested with both device android/ios, current tracelogs is for ios:

please find the earlier created functions/methods in keywords class for your reference:
// Clicking on the button
public String Mobileclick(AppiumDriver driver, String objRef, String data)
throws Exception {

    System.out.println("Mobileclickr objRef "+objRef);
    WebElement element = mobileobject(objRef, driver);
    System.out.println("Mobileclickr element");
    WebDriverWait wait = new WebDriverWait(driver, 30);
    System.out.println("Mobileclickr WebDriverWait");
     element.click();
    return Constants.KEYWORD_PASS;

// Write the input to mobile text box
public String MobilewriteInInput(AppiumDriver driver, String objRef,String data) throws Exception {
    WebElement element = mobileobject(objRef, driver);
    WebDriverWait wait = new WebDriverWait(driver, 30);
    wait.until(ExpectedConditions.visibilityOf(element));
    // System.out.println(element + "::::"+ data);
    element.sendKeys(data);
    Thread.sleep(500); //commented by Siva on 10/20
    driver.navigate().back();
    return Constants.KEYWORD_PASS;

Not working Experitest function/method in keyword class:

public String MobileAppExit(AppiumDriver driver)
throws Exception {
    
    ((SeeTestIOSDriver) driver).deviceAction("Home");
    
    return Constants.KEYWORD_PASS;
}

for Launching application desired capability setup:

public static AppiumDriver Mobile()
{
String currentTCName = Constants.MobileFlaggedTCs.get(0);
System.out.println("Mobile TC name: "+currentTCName);
//String mobile=“webapp”;
String Mobile=“nativeapp”;
//AppiumDriver driver = null;

        String host = "localhost";
        int port = 8891;
        String reportDirectory = "reports";
        String reportFormat = "xml";
        String testName = "Untitled";
        //SeeTestAndroidDriver<SeeTestAndroidElement> driver = null;
        SeeTestIOSDriver<SeeTestIOSElement> driver = null;

    
    try {
 if(currentTCName.contains("MB0"))
{

DesiredCapabilities dc = new DesiredCapabilities();
dc.setCapability(SeeTestCapabilityType.REPORT_DIRECTORY, reportDirectory);
dc.setCapability(SeeTestCapabilityType.REPORT_FORMAT, reportFormat);
dc.setCapability(SeeTestCapabilityType.TEST_NAME, testName);
dc.setCapability(MobileCapabilityType.UDID, “0d36138461318ea7fe493b272ee6e27d3bd3eb75”);
dc.setCapability(IOSMobileCapabilityType.BUNDLE_ID, “com.experitest.ExperiBank”);
driver = new SeeTestIOSDriver<>(new URL(“http://”+host+":"+port), dc);

        System.out.println("Launched Native App");
        //System.out.println("abcd" + Constants.MobileFlaggedTCs.size());
        Thread.sleep(8000);
        Mobileexecute(driver);
     System.out.println("This is thread 5: Mobile Native App");

     }

Please find the Stractrac logs:

Row Count69

value is found

[id,
thanh.jun.contactmanager:id/btshow]

Adding OR completed

Hub is Started…

[TC02_Createleads, TC03_leadmandatory,
TC04_EditLeads, TC05_LeadConvert, TC06_Le

adConvert_opportunity,
TC07_NewLeadClone, TC08_Editclonelead, TC09_Deleteclonele

ad, TC10_MergingLead]

[MB01_Login, MB02_Update_Profile,
MB03_Health_tracker, MB04_ContactManager, MB05

_CHLogin, MB06_Magicbric,
Mobileweb_Login, Mobilweb_Organisation]

Row Count69

value is found

[id,
thanh.jun.contactmanager:id/btshow, id, thanh.jun.contactmanager:id/btshow]

Adding OR completed

Hub is Started…

Executing on CHROME

Mobile TC name: MB07_Eribank

[Thu Apr 20 13:20:41 IST 2017]
[driver] Starting test: ‘Untitled’

[Thu Apr 20 13:20:41 IST 2017]
[driver] {noReset=false, instrumentApp=false, bun

dleId=com.experitest.ExperiBank,
reservationDuration=240, reportFormat=xml, full

Reset=false,
waitForDeviceTimeout=120000, useRemoteGrid=false, automationName=XC

UITest, reportDirectory=reports,
[enableclientlog, enableclientlogger]=false, au

toWebview=false,
udid=0d36138461318ea7fe493b272ee6e27d3bd3eb75, platformName=iOS

, testName=Untitled}

[Thu Apr 20 13:20:41 IST 2017]
[driver] context: NATIVE_APP

[Thu Apr 20 13:20:41 IST 2017]
[driver] application under test:

[Thu Apr 20 13:20:41 IST 2017]
[driver] app path: null

[Thu Apr 20 13:20:41 IST 2017]
[driver] full reset: false

[Thu Apr 20 13:20:41 IST 2017]
[driver] instrument: false

[Thu Apr 20 13:20:41 IST 2017]
[driver] no reset: false

[Thu Apr 20 13:20:41 IST 2017]
[driver] bundleId: com.experitest.ExperiBank

[Thu Apr 20 13:20:41 IST 2017]
[driver] launch timeout ms: null

[Thu Apr 20 13:20:41 IST 2017]
[driver] browser: false

[Thu Apr 20 13:20:41 IST 2017]
[driver] connecting localhost:8891

[Thu Apr 20 13:20:41 IST 2017]
[driver] Call of getSessionID returned: d696

[Thu Apr 20 13:20:41 IST 2017]
[driver] setting reporter directory: reports

[Thu Apr 20 13:20:41 IST 2017]
[driver] setting reporter format: xml

[Thu Apr 20 13:20:41 IST 2017]
[driver] setting test name: Untitled

[Thu Apr 20 13:20:41 IST 2017]
[driver] wait for device '@serialnumber='0d361384

61318ea7fe493b272ee6e27d3bd3eb75’’
timeout-ms=‘120000’

[Thu Apr 20 13:20:46 IST 2017]
[driver] Device ‘ios_app:Ravindra iPhone’ ready

[Thu Apr 20 13:20:46 IST 2017]
[driver] launching com.experitest.ExperiBank …

RemoteWebDriver: chrome on WIN8_1
(62ac73ae-da56-4265-809c-1798aa3b4548)

[Thu Apr 20 13:20:51 IST 2017]
[driver] Call of launchApp returned: native

Launched Native App

1

Testcase name: MB07_Eribank

Thread[Mobile,6,main]-------Enter
username----MobilewriteInputnav----xpath----//

*[@accessibilityLabel=‘Username’]----company

[Thu Apr 20 13:21:04 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:21:04 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:21:04 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@accessibilityLabel=‘Username’])

[Thu Apr 20 13:21:04 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

accessibilityLabel=‘Username’]")

Bug ID: 405

[Thu Apr 20 13:21:06 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:21:06 IST 2017] [d696]
[driver] [end] findElement

[Thu Apr 20 13:21:06 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:21:06 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:21:06 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@accessibilityLabel=‘Username’])

[Thu Apr 20 13:21:06 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

accessibilityLabel=‘Username’]")

[Thu Apr 20 13:21:07 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:21:07 IST 2017] [d696]
[driver] [end] findElement

[Thu Apr 20 13:21:07 IST 2017] [d696]
[element] [start] isDisplayed()

[Thu Apr 20 13:21:08 IST 2017] [d696]
[element] [end] isDisplayed

[Thu Apr 20 13:21:08 IST 2017] [d696]
[element] [start] sendKeys(“company”)

[Thu Apr 20 13:21:13 IST 2017] [d696] [driver]
[start] manage()

[Thu Apr 20 13:21:13 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:21:14 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@class=’_UITextFieldRoundedRectBackgroundViewNeue’
and ./parent::*[@placeholder

=‘Password’]])

[Thu Apr 20 13:21:14 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

class=’_UITextFieldRoundedRectBackgroundViewNeue’
and ./parent::*[@placeholder=’

Password’]]")

[Thu Apr 20 13:21:15 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:21:15 IST 2017] [d696]
[driver] [end] findElement

Mobileclickr objRef
Eribank_Select_password

[Thu Apr 20 13:21:15 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:21:15 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:21:15 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@class=’_UITextFieldRoundedRectBackgroundViewNeue’
and ./parent::*[@placeholder

=‘Password’]])

[Thu Apr 20 13:21:15 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

class=’_UITextFieldRoundedRectBackgroundViewNeue’
and ./parent::*[@placeholder=’

Password’]]")

[Thu Apr 20 13:21:16 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:21:16 IST 2017] [d696]
[driver] [end] findElement

Mobileclickr element

Mobileclickr WebDriverWait

[Thu Apr 20 13:21:16 IST 2017] [d696]
[element] [start] click()

[Thu Apr 20 13:21:18 IST 2017] [d696]
[element] [end] click

select password field-PASS

[Thu Apr 20 13:21:20 IST 2017] [d696] [driver]
[start] manage()

[Thu Apr 20 13:21:20 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:21:21 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@accessibilityLabel=‘Password’])

[Thu Apr 20 13:21:21 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

accessibilityLabel=‘Password’]")

[Thu Apr 20 13:21:22 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:21:22 IST 2017] [d696]
[driver] [end] findElement

[Thu Apr 20 13:21:22 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:21:22 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:21:22 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@accessibilityLabel=‘Password’])

[Thu Apr 20 13:21:22 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

accessibilityLabel=‘Password’]")

[Thu Apr 20 13:21:23 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:21:23 IST 2017] [d696]
[driver] [end] findElement

[Thu Apr 20 13:21:23 IST 2017] [d696]
[element] [start] isDisplayed()

[Thu Apr 20 13:21:24 IST 2017] [d696]
[element] [end] isDisplayed

[Thu Apr 20 13:21:24 IST 2017] [d696]
[element] [start] sendKeys(“company”)

[Thu Apr 20 13:21:27 IST 2017] [d696]
[element] [end] sendKeys

Enter password-PASS

Thread[Mobile,6,main]-------login----Mobileclick----xpath----//*[@text=‘Login’]-


[Thu Apr 20 13:21:29 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:21:29 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:21:30 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@text=‘Login’])

[Thu Apr 20 13:21:30 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

text=‘Login’]")

[Thu Apr 20 13:21:31 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:21:31 IST 2017] [d696]
[driver] [end] findElement

Mobileclickr objRef Eribank_login

[Thu Apr 20 13:21:31 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:21:31 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:21:31 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@text=‘Login’])

[Thu Apr 20 13:21:31 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

text=‘Login’]")

[Thu Apr 20 13:21:32 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:21:32 IST 2017] [d696]
[driver] [end] findElement

Mobileclickr element

Mobileclickr WebDriverWait

[Thu Apr 20 13:21:32 IST 2017] [d696]
[element] [start] click()

[Thu Apr 20 13:21:34 IST 2017] [d696]
[element] [end] click

login-PASS

Thread[Mobile,6,main]-------Select
makepayment----Mobileclick----xpath----//*[@t

ext=‘Make Payment’]----

[Thu Apr 20 13:21:36 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:21:36 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:21:36 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@text=‘Make Payment’])

[Thu Apr 20 13:21:36 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

text=‘Make Payment’]")

[Thu Apr 20 13:21:37 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:21:37 IST 2017] [d696]
[driver] [end] findElement

Mobileclickr objRef
Eribank_Select_MakePayment

[Thu Apr 20 13:21:37 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:21:37 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:21:37 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@text=‘Make Payment’])

[Thu Apr 20 13:21:37 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

text=‘Make Payment’]")

[Thu Apr 20 13:21:39 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:21:39 IST 2017] [d696]
[driver] [end] findElement

Mobileclickr element

Mobileclickr WebDriverWait

[Thu Apr 20 13:21:39 IST 2017] [d696]
[element] [start] click()

[Thu Apr 20 13:21:40 IST 2017] [d696]
[element] [end] click

Select makepayment-PASS

Thread[Mobile,6,main]-------enter
phone number----MobilewriteInputnav----xpath–

–//[@class=’_UITextFieldRoundedRectBackgroundViewNeue’
and ./parent::
[@placeh

older=‘Phone’]]----9.980400755E9

[Thu Apr 20 13:21:44 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:21:44 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:21:44 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@class=’_UITextFieldRoundedRectBackgroundViewNeue’
and ./parent::*[@placeholder

=‘Phone’]])

[Thu Apr 20 13:21:44 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

class=’_UITextFieldRoundedRectBackgroundViewNeue’
and ./parent::*[@placeholder=’

Phone’]]")

[Thu Apr 20 13:21:45 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:21:45 IST 2017] [d696]
[driver] [end] findElement

[Thu Apr 20 13:21:45 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:21:45 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:21:45 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@class=’_UITextFieldRoundedRectBackgroundViewNeue’
and ./parent::*[@placeholder

=‘Phone’]])

[Thu Apr 20 13:21:45 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

class=’_UITextFieldRoundedRectBackgroundViewNeue’
and ./parent::*[@placeholder=’

Phone’]]")

[Thu Apr 20 13:21:47 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:21:47 IST 2017] [d696]
[driver] [end] findElement

[Thu Apr 20 13:21:47 IST 2017] [d696]
[element] [start] isDisplayed()

[Thu Apr 20 13:21:47 IST 2017] [d696]
[element] [end] isDisplayed

[Thu Apr 20 13:21:47 IST 2017] [d696]
[element] [start] sendKeys(“9.980400755E9”

)

[Thu Apr 20 13:21:50 IST 2017] [d696]
[element] [end] sendKeys

enter phone number-PASS

[Thu Apr 20 13:21:56 IST 2017] [d696] [driver]
[start] manage()

[Thu Apr 20 13:21:56 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:21:56 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@accessibilityLabel=‘Name’])

[Thu Apr 20 13:21:56 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

accessibilityLabel=‘Name’]")

[Thu Apr 20 13:21:57 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:21:57 IST 2017] [d696]
[driver] [end] findElement

[Thu Apr 20 13:21:57 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:21:57 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:21:57 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@accessibilityLabel=‘Name’])

[Thu Apr 20 13:21:57 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

accessibilityLabel=‘Name’]")

[Thu Apr 20 13:21:58 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:21:58 IST 2017] [d696]
[driver] [end] findElement

[Thu Apr 20 13:21:58 IST 2017] [d696]
[element] [start] isDisplayed()

[Thu Apr 20 13:21:59 IST 2017] [d696]
[element] [end] isDisplayed

[Thu Apr 20 13:21:59 IST 2017] [d696]
[element] [start] sendKeys(“Ravindra”)

[Thu Apr 20 13:22:02 IST 2017] [d696]
[element] [end] sendKeys

Enter name-PASS

[Thu Apr 20 13:22:04 IST 2017] [d696] [driver]
[start] manage()

[Thu Apr 20 13:22:04 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:22:05 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@accessibilityLabel=‘Amount’])

[Thu Apr 20 13:22:05 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

accessibilityLabel=‘Amount’]")

[Thu Apr 20 13:22:06 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:22:06 IST 2017] [d696]
[driver] [end] findElement

[Thu Apr 20 13:22:06 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:22:06 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:22:06 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@accessibilityLabel=‘Amount’])

[Thu Apr 20 13:22:06 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

accessibilityLabel=‘Amount’]")

[Thu Apr 20 13:22:07 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:22:07 IST 2017] [d696]
[driver] [end] findElement

[Thu Apr 20 13:22:07 IST 2017] [d696]
[element] [start] isDisplayed()

[Thu Apr 20 13:22:08 IST 2017] [d696]
[element] [end] isDisplayed

[Thu Apr 20 13:22:08 IST 2017] [d696]
[element] [start] sendKeys(“100.0”)

[Thu Apr 20 13:22:11 IST 2017] [d696]
[element] [end] sendKeys

Enter amount-PASS

[Thu Apr 20 13:22:13 IST 2017] [d696] [driver]
[start] findElement(By.xpath: //*

[@accessibilityLabel=‘Country’])

[Thu Apr 20 13:22:13 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

accessibilityLabel=‘Country’]")

[Thu Apr 20 13:22:14 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:22:14 IST 2017] [d696]
[driver] [end] findElement

[Thu Apr 20 13:22:14 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:22:14 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:22:14 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@accessibilityLabel=‘Country’])

[Thu Apr 20 13:22:14 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

accessibilityLabel=‘Country’]")

[Thu Apr 20 13:22:16 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:22:16 IST 2017] [d696]
[driver] [end] findElement

[Thu Apr 20 13:22:16 IST 2017] [d696]
[element] [start] isDisplayed()

[Thu Apr 20 13:22:16 IST 2017] [d696]
[element] [end] isDisplayed

[Thu Apr 20 13:22:16 IST 2017] [d696]
[element] [start] sendKeys(“India”)

[Thu Apr 20 13:22:20 IST 2017] [d696]
[element] [end] sendKeys

Enter country-PASS

Thread[Mobile,6,main]-------Select
Sendpayment----Mobileclick----xpath----(//*[@

class=‘UIKBKeyplaneView’]/*[@class=‘UIKBKeyView’])[7]----

[Thu Apr 20 13:22:22 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:22:22 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:22:22 IST 2017] [d696]
[driver] [start] findElement(By.xpath: (//

[@class=‘UIKBKeyplaneView’]/[@class=‘UIKBKeyView’])[7])

[Thu Apr 20 13:22:22 IST 2017] [d696]
[driver] [start] findElementByXPath("(//*[

@class=‘UIKBKeyplaneView’]/*[@class=‘UIKBKeyView’])[7]")

[Thu Apr 20 13:22:24 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:22:24 IST 2017] [d696]
[driver] [end] findElement

Mobileclickr objRef
Eribank_Select_Sendpayment

[Thu Apr 20 13:22:24 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:22:24 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:22:24 IST 2017] [d696]
[driver] [start] findElement(By.xpath: (//

[@class=‘UIKBKeyplaneView’]/[@class=‘UIKBKeyView’])[7])

[Thu Apr 20 13:22:24 IST 2017] [d696]
[driver] [start] findElementByXPath("(//*[

@class=‘UIKBKeyplaneView’]/*[@class=‘UIKBKeyView’])[7]")

[Thu Apr 20 13:22:25 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:22:25 IST 2017] [d696]
[driver] [end] findElement

Mobileclickr element

Mobileclickr WebDriverWait

[Thu Apr 20 13:22:25 IST 2017] [d696]
[element] [start] click()

[Thu Apr 20 13:22:27 IST 2017] [d696]
[element] [end] click

Select Sendpayment-PASS

Thread[Mobile,6,main]-------Select
yes----Mobileclick----xpath----//*[@text='Yes

']----

[Thu Apr 20 13:22:29 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:22:29 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:22:29 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@text=‘Yes’])

[Thu Apr 20 13:22:29 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

text=‘Yes’]")

[Thu Apr 20 13:22:31 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:22:31 IST 2017] [d696]
[driver] [end] findElement

Mobileclickr objRef Eribank_Select_yes

[Thu Apr 20 13:22:31 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:22:31 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:22:31 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@text=‘Yes’])

[Thu Apr 20 13:22:31 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

text=‘Yes’]")

[Thu Apr 20 13:22:32 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:22:32 IST 2017] [d696]
[driver] [end] findElement

Mobileclickr element

Mobileclickr WebDriverWait

[Thu Apr 20 13:22:32 IST 2017] [d696]
[element] [start] click()

[Thu Apr 20 13:22:34 IST 2017] [d696]
[element] [end] click

Select yes-PASS

Thread[Mobile,6,main]-------logout----Mobileclick----xpath----//*[@text=‘Logout’

]----

[Thu Apr 20 13:22:36 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:22:36 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:22:37 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@text=‘Logout’])

[Thu Apr 20 13:22:37 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

text=‘Logout’]")

[Thu Apr 20 13:22:38 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:22:38 IST 2017] [d696]
[driver] [end] findElement

Mobileclickr objRef Eribank_logout

[Thu Apr 20 13:22:38 IST 2017] [d696]
[driver] [start] manage()

[Thu Apr 20 13:22:38 IST 2017] [d696]
[driver] [end] manage

[Thu Apr 20 13:22:38 IST 2017] [d696]
[driver] [start] findElement(By.xpath: //*

[@text=‘Logout’])

[Thu Apr 20 13:22:38 IST 2017] [d696]
[driver] [start] findElementByXPath("//*[@

text=‘Logout’]")

[Thu Apr 20 13:22:39 IST 2017] [d696]
[driver] [end] findElementByXPath

[Thu Apr 20 13:22:39 IST 2017] [d696]
[driver] [end] findElement

Mobileclickr element

Mobileclickr WebDriverWait

[Thu Apr 20 13:22:39 IST 2017] [d696]
[element] [start] click()

[Thu Apr 20 13:22:40 IST 2017] [d696]
[element] [end] click

logout-PASS

testlink.api.java.client.TestLinkAPIException: The call to the
xml-rpc client fa

iled.

Not able to execute the keyword:
[Ljava.lang.StackTraceElement;@2d3134f7

This is thread 5: Mobile Native App

Thank
Ravi

Hi Tom,

Any updates on above issues? how can we fix? is there any thing wrong while creating method for driver.deviceAction(“Home”); in framework?

Thanks
Ravi

Hi Ravi

Sorry for the delayed response

we have issued a new release for the tool, with updated JARs for the drivers

could I ask you to retry and see if the issue still persists?

http://experitest.com/appium-studio/

make sure you use the latest jars, we host them in maven or you can find them in the installation folder under clients/java


Hi Tom ,
i Updated AppiumStudio & all jars still driver.deviceactionAction(“Home”) still not working

Hi Tom,

I have verified with latest appium studio release 10.8, still the same issues exists Error"Not able to execute the keyword"
used driver.deviceAction(“Home”); command for moving to Home screen , if we use this function it launch home screen at any point of time and from Appium studio when we record and play back , it works fine.
when we create function in framework as mention below , its not working, please let me know is there any thing wrong creating function for above command?

public String MobileAppExit(AppiumDriver driver)
throws Exception {
    
    //((SeeTestIOSDriver) driver).deviceAction("Home");
        
    ((SeeTestAndroidDriver) driver).deviceAction("Home");
    
    return Constants.KEYWORD_PASS;
}

it will be great if you can provide solution for this…

Thanks
Ravi

Is there any chance that you are importing an older version of appium client?

can you try the same issue with a clean project without any additional dependencies?

Hi Tom,

i am using Appium client which was provided by appium studio after installing from C:\Program Files (x86)\Experitest\AppiumStudio\clients\appium\java.

apart from appium studio jars, i am using additional jars which was supporting for Mobile automation framework IDE and it was working fine for mobile functions like click, write text in field, etc
if i use only appium studio jars and i am getting below mentioned error and could not able to run framework.

Error details:

Exception in thread
“AWT-EventQueue-0” java.lang.Error: Unresolved compilation p

roblems:

   The

import org.apache.poi cannot be resolved

   The

import org.apache.poi cannot be resolved

   The

import org.apache.poi cannot be resolved

   The

import org.apache.poi cannot be resolved

   The

import org.apache.poi cannot be resolved

   The

import org.apache.poi cannot be resolved

   The

import org.apache.poi cannot be resolved

   The

import org.apache.poi cannot be resolved

   XSSFWorkbook

cannot be resolved to a type

   XSSFSheet

cannot be resolved to a type

   XSSFRow

cannot be resolved to a type

   XSSFCell

cannot be resolved to a type

   XSSFWorkbook

cannot be resolved to a type

   XSSFWorkbook

cannot be resolved to a type

   XSSFSheet

cannot be resolved to a type

   XSSFWorkbook

cannot be resolved to a type

   XSSFWorkbook

cannot be resolved to a type

   XSSFSheet

cannot be resolved to a type

   XSSFWorkbook

cannot be resolved to a type

   XSSFSheet

cannot be resolved to a type

   XSSFWorkbook

cannot be resolved to a type

   XSSFSheet

cannot be resolved to a type

   XSSFWorkbook

cannot be resolved to a type

   XSSFRow

cannot be resolved to a type

   XSSFSheet

cannot be resolved to a type

   XSSFRow

cannot be resolved to a type

   XSSFRow

cannot be resolved to a type

   XSSFSheet

cannot be resolved to a type

   XSSFWorkbook

cannot be resolved to a type

   XSSFRow

cannot be resolved to a type

   XSSFSheet

cannot be resolved to a type

   XSSFRow

cannot be resolved to a type

   XSSFCell

cannot be resolved to a type

   XSSFRow

cannot be resolved to a type

   XSSFCell

cannot be resolved to a type

   XSSFCell

cannot be resolved to a type

   Cell

cannot be resolved to a variable

   XSSFCell

cannot be resolved to a type

   XSSFCell

cannot be resolved to a type

   Cell

cannot be resolved to a variable

   XSSFCell

cannot be resolved to a type

   Cell

cannot be resolved to a variable

   XSSFCell

cannot be resolved to a type

   HSSFDateUtil

cannot be resolved

   XSSFCell

cannot be resolved to a type

   XSSFCell

cannot be resolved to a type

   HSSFDateUtil

cannot be resolved

   XSSFCell

cannot be resolved to a type

   Cell

cannot be resolved to a variable

   XSSFCell

cannot be resolved to a type

   XSSFWorkbook

cannot be resolved to a type

   XSSFSheet

cannot be resolved to a type

   XSSFWorkbook

cannot be resolved to a type

   XSSFRow

cannot be resolved to a type

   XSSFSheet

cannot be resolved to a type

   XSSFRow

cannot be resolved to a type

   XSSFCell

cannot be resolved to a type

   XSSFRow

cannot be resolved to a type

   XSSFCell

cannot be resolved to a type

   XSSFCell

cannot be resolved to a type

   Cell

cannot be resolved to a variable

   XSSFCell

cannot be resolved to a type

   XSSFCell

cannot be resolved to a type

   Cell

cannot be resolved to a variable

   XSSFCell

cannot be resolved to a type

   Cell

cannot be resolved to a variable

   XSSFCell

cannot be resolved to a type

   HSSFDateUtil

cannot be resolved

   XSSFCell

cannot be resolved to a type

   XSSFCell

cannot be resolved to a type

   HSSFDateUtil

cannot be resolved

   XSSFCell

cannot be resolved to a type

   Cell

cannot be resolved to a variable

   XSSFCell

cannot be resolved to a type

   Workbook

cannot be resolved to a type

   WorkbookFactory

cannot be resolved

   Sheet

cannot be resolved to a type

   Row

cannot be resolved to a type

   Cell

cannot be resolved to a type

   InvalidFormatException cannot be resolved to

a type

   Workbook

cannot be resolved to a type

   WorkbookFactory

cannot be resolved

   Sheet

cannot be resolved to a type

   InvalidFormatException cannot be resolved to

a type

   Workbook

cannot be resolved to a type

   WorkbookFactory

cannot be resolved

   Sheet

cannot be resolved to a type

   Row

cannot be resolved to a type

   Cell

cannot be resolved to a type

   InvalidFormatException cannot be resolved to

a type

   XSSFWorkbook

cannot be resolved to a type

   XSSFWorkbook

cannot be resolved to a type

   at

XXXX.Core.Xls_Reader.(Xls_Reader.java:3)

   at

XXXX.Main.Index.LoadEnvironments(Index.java:562)

   at

XXXX.Main.Index.(Index.java:119)

   at

XXXX.Main.Index$11.run(Index.java:821)

   at

java.awt.event.InvocationEvent.dispatch(Unknown Source)

   at

java.awt.EventQueue.dispatchEventImpl(Unknown Source)

   at

java.awt.EventQueue.access$500(Unknown Source)

   at

java.awt.EventQueue$3.run(Unknown Source)

   at

java.awt.EventQueue$3.run(Unknown Source)

   at

java.security.AccessController.doPrivileged(Native Method)

   at

java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivileg

e(Unknown Source)

   at

java.awt.EventQueue.dispatchEvent(Unknown Source)

   at

java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

   at

java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

   at

java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

   at

java.awt.EventDispatchThread.pumpEvents(Unknown Source)

   at

java.awt.EventDispatchThread.pumpEvents(Unknown Source)

   at

java.awt.EventDispatchThread.run(Unknown Source)

Thanks
Ravi

org.apache.poi is not related to Appium Studio and there for it is not in it.
You need to import it from some place else - probably here - https://mvnrepository.com/artifact/org.apache.poi/poi/3.9
Add it to your build path. It will solve your “cannot be resolved” errors

1 Like