大家下午安,这个问题困绕我一整天,stackoverflow 看起来也没解法,
请大家帮帮忙想办法 >.<
*** Settings ***
Library Collections
Library Selenium2Library
*** Variables ***
${file_path} ${CURDIR}/file/IMG_0738.jpg
*** Test Cases ***
Case
Run Keywords PreconditionLogin
... AND MyKeyword
*** Keywords ***
PreconditionLogin
${chrome_options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${chrome_options} add_argument