搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

chrome://browser/content/ in the url when url is sent to firefox using selenium. please help.

  • 2 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 user1359215

more options

I created a webdriver object in selenium and instantiated for firefox driver.

Code is shown below: WebDriver driver; System.setProperty("webdriver.gecko.driver", "C:\\selenium-java\\geckodriver-v0.11.1-win32\\geckodriver.exe"); driver = new FirefoxDriver();

driver.get("www.yahoo.com");

How ever after firefox is launched , URL is being changed to chrome://browser/content/www.yahoo.com and giving below error:

File not found

Firefox can’t find the file at chrome://browser/content/www.yahoo.com.

   Check the file name for capitalization or other typing errors.
   Check to see if the file was moved, renamed or deleted.


Can anyone please help.

I have firefox with 49 version.

I created a webdriver object in selenium and instantiated for firefox driver. Code is shown below: WebDriver driver; System.setProperty("webdriver.gecko.driver", "C:\\selenium-java\\geckodriver-v0.11.1-win32\\geckodriver.exe"); driver = new FirefoxDriver(); driver.get("www.yahoo.com"); How ever after firefox is launched , URL is being changed to chrome://browser/content/www.yahoo.com and giving below error: File not found Firefox can’t find the file at chrome://browser/content/www.yahoo.com. Check the file name for capitalization or other typing errors. Check to see if the file was moved, renamed or deleted. Can anyone please help. I have firefox with 49 version.

所有回覆 (2)

more options

Appreciate a quick help on this...