有人可以告訴我什麼在下面的代碼中是錯誤的。我試圖用隨機生成的字符串輸入文本。當我使用沒有selenium2library時它工作正常。任何幫助,將不勝感激。將隨機生成的字符串存儲爲變量,並將其傳遞給使用selenium2library輸入文本
Keywords.txt
***Settings***
Library Selenium2Library
Library String
*** Variables ***
${URL} https://www.google.co.in/
${Browser} Chrome
${RandomString} Generate Random String 10 [LETTERS]
*** Keywords ***
Google Input Random String
Open Browser ${URL} ${Browser}
Input Text //*[@id='lst-ib'] ${RandomString}
Close Browser
Execute.txt
*** settings ***
Library Selenium2Library
Resource Google_Test_Keywords.txt
*** Test Cases ***
Google Random String Search
Google Input Random String
Madhu,如果我的解決方案適合您,請將答案標爲正確。 – jim