0
我正在使用Selenium進行一些Web測試。我的代碼如下所示:遠程服務器返回錯誤:(401)使用任何站點時未經授權
selenium = new DefaultSelenium("localhost", 80, "*firefox", "http://www.google.co.uk/firefox?client=firefox-a&rls=org.mozilla:en-GB:official"); ;
selenium.Start();
selenium.GetText("/html/body[@id='mozilla-com']/div[1]/div[2]/div[2]/h2/span");
不過,我得到一個錯誤,說明:
遠程服務器返回錯誤:(401)未經授權。
任何人有任何想法爲什麼?
感謝