2013-07-22 40 views
0

我是新來的Watir以下是我的查詢元素:需要訪問管理服務器瀏覽器

通過瀏覽器,我已經連接到Linux服務器,我能夠自動完成這一過程。

現在登錄後,瀏覽器打開一個管理頁面(Webtop),我需要訪問該管理頁面的元素,但我不能。此外,即使是一個簡單的browser.text.include? "suplaonk"也不會輸出,與browser.title一樣。

回答

0

不完全確定Webtop是什麼,但根據此鏈接Webtop頁面在PSML(門戶標準標記語言)中定義,即不是HTML。所以,我不認爲watir會是你嘗試做的最好的選擇。如果您認爲該頁面實際上是HTML,您可以使用螢火蟲發佈html嗎? http://publib.boulder.ibm.com/infocenter/tivihelp/v8r1/index.jsp?topic=%2Fcom.ibm.netcool_wt.doc%2Fag%2FxF11248784180104.html

+0

<!DOCTYPE HTML> – Sachin

+0

我想防火牆阻止訪問該頁面的元素。 如何克服這一點?我嘗試禁用防火牆,但沒用。 – Sachin

+0

此鏈接可能是答案。 http://watirmelon.com/2012/06/27/automatic-firefox-authentication-when-using-selenium-webdriver-with-autoauth/ – Arpit