[問題] Robot Framework 上傳檔案 (MAC)

作者: stillcolor (鬼艾倫)   2019-05-13 18:24:46
大家下午安,這個問題困繞我一整天,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
作者: froce (froce)   2019-05-14 20:55:00
hover?
作者: stillcolor (鬼艾倫)   2019-05-15 15:16:00
找到原因了,xpath 要用input的locator...而不能用button

Links booklink

Contact Us: admin [ a t ] ucptt.com