I try open chrome browser in my android, using robotframework with this script
*** Settings ***
Documentation A resource for global
Library Selenium2Library timeout=15
*** Variable ***
${COMMAND_EXECUTOR} http://localhost:4723/wd/hub
${BROWSER} Chrome
${PLATFORM_NAME} Android
${UDID} FF786D96CB71039D
*** Test Case ***
Test Case Open Chrome In Real Device
Open Android Browser https://www.google.co.id
*** Keywords ***
Open Android Browser
[Documentation] To open android default browser (not chrome) and go to provided URL
[Arguments] ${url}
${capabilities}= Create Dictionary browserName=${BROWSER} platformName=${PLATFORM_NAME} udid=${UDID} deviceName=${PLATFORM_NAME}
Create Webdriver Remote command_executor=${COMMAND_EXECUTOR} desired_capabilities=${capabilities}
Go To ${url}
The problem is when i try to run it, get an error
==============================================================================
Testcase 2 :: A resource for global
==============================================================================
[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open
Test Case Open Chrome In Real Device | FAIL |
URLError: <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it>
------------------------------------------------------------------------------
Testcase 2 :: A resource for global | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
I try implemen from Opening Chrome browser in Android device using Robot Framework script and chromedriver?,
but still fail. Is there any setup in my andorid first before i run this test? must create a test server or what ? Thanks for helping