Skip to content

Error Robot framework failed: AttributeError: 'RemoteConnection' object has no attribute 'decode' #93

@juliaderochi

Description

@juliaderochi

Hi, I'm trying to run this automation but I have the following error:

Evaluating expression 'appium.webdriver.Remote(($command_executor).decode, $kwargs)' failed: AttributeError: 'RemoteConnection' object has no attribute 'decode'

My code:

***Settings***
Library                   AppiumLibrary
Library                   OperatingSystem
Library                   String
Library                   BuiltIn

*** Variable ***
${REMOTE_URL}             user:key(I insert my user and my apikey)
${PLATFORM_NAME}          Android
${DEVICE_NAME}            Moto X Play
${DEVICE_GROUP}           KOBITON
${AUTOMATION_NAME}        Appium
${APP_PATH}               https://s3-ap-southeast-1.amazonaws.com/kobiton-devvn/apps-test/ApiDemos-debug.apk

***Keywords***
Open Application With Session Timeout
    [Arguments]    ${remote_url}    ${alias}=${EMPTY}   ${resolve_ip}=False    ${session_timeout}=300    &{kwargs}
    ${command_executor}=    Evaluate    selenium.webdriver.remote.remote_connection.RemoteConnection($remote_url, resolve_ip=${resolve_ip})   selenium
    Log To Console   ${command_executor}
    Evaluate    $command_executor.set_timeout(${session_timeout})
    Log To Console   ${command_executor}
    ${driver}=  Evaluate    appium.webdriver.Remote(($command_executor).decode, $kwargs)    appium
    # ${al}=    Get Library Instance    AppiumLibrary
    # Evaluate    $al._cache.register($driver, $alias)

Open Session
    Open Application With Session Timeout
    ...                                      remote_url=https://${REMOTE_URL}@api.kobiton.com/wd/hub
    ...                                      platformName=${PLATFORM_NAME}
    ...                                      deviceName=${DEVICE_NAME}
    ...                                      deviceGroup=${DEVICE_GROUP}
    ...                                      automationName=${AUTOMATION_NAME}
    ...                                      app=${APP_PATH}

can you help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions