[英]Robot Framework - Selenium2library - Check the Favicon of the page
[英]Robot framework with Selenium2Library - Is the syntax wrong?
我剛開始使用Robot Framework,並且編寫了應通過但不通過的簡單測試。 屏幕截圖清楚地顯示了這些元素在網站上。 這些是幾個示例:
Page Should Contain Element name websiteRegistration
要么
Page Should Contain Sign in and start watching
尋找文字。
整個resource.txt的說明如下:
*** Settings ***
Documentation A resource file with reusable keywords and variables.
...
... The system specific keywords created here form our own
... domain specific language. They utilize keywords provided
... by the imported Selenium2Library.
Library Selenium2Library
*** Variables ***
${SERVER} localhost:8080
${BROWSER} Firefox
${DELAY} 20
${HOME URL} http://${SERVER}/some-link-that-works
*** Keywords ***
Open Browser To Welcome Page
Open Browser ${HOME URL} ${BROWSER}
Check If It Works
Set Selenium Speed ${DELAY}
Page Should Contain Sign in and start watching
謝謝您的幫助!!
如果沒有其他信息,我想您的測試代碼到頁面的時間還為時過早。 請嘗試以下操作:
Check If It Works
Set Selenium Speed ${DELAY}
Wait Until Page Contains Sign in and start watching
Page Should Contain Sign in and start watching
檢查此列表以獲取更多信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.