我需要查看當前頁面是否顯示正確的標題圖標。我們根據您在網站上的位置更改圖標,並需要對其進行檢查。Robot Framework - Selenium2library - 檢查頁面的Favicon
我已經試過
Page Should Contain Image /bin/icons/1.ico
我們所使用的HTML是:
<link rel="shortcut icon" type="image/x-icon" href="/bin/icons/1.ico"/>
關鍵字沒有工作..有別的東西,我必須使用?還是硒不支持做這種測試?
你試圖獲得的'href'值與[獲取元素屬性(HTTP屬性: //robotframework.org/Selenium2Library/Selenium2Library.html#Get%20Element%20Attribute)? –
我怎樣才能得到頁面內沒有顯示的東西的定位器?它正在瀏覽器標籤上顯示。 – Goralight
我不知道。我只是問,這是你試圖弄清楚的。 –