我在我的机器人中尝试打开chrome浏览器,使用带有此脚本的robotframework
*** 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}
问题是当我尝试运行它时,会出现错误
==============================================================================
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
==============================================================================
我尝试从Opening Chrome browser in Android device using Robot Framework script and chromedriver?实施,
但仍然失败。在我运行此测试之前,我的andorid中是否有任何设置?必须创建一个测试服务器或什么?谢谢你的帮助