簡體   English   中英

Chrome瀏覽器未使用selenium加載網頁

[英]Chrome Browser not loading the web page using selenium

我使用selenium使用chrome瀏覽器自動化網頁,但Chrome瀏覽器沒有啟動,它顯示“data:;” 在地址欄中沒有加載任何頁面。

Selenium:selenium-server-standalone-3.0.0-beta2,也嘗試過2.53

Chrome驅動程序:2.23( http://chromedriver.storage.googleapis.com/index.html?path=2.23/

Eclipse:開普勒

Chrome瀏覽器:版本53.0.2785.89米(64位)

以下是我正在使用的代碼

        System.setProperty("webdriver.chrome.driver","C:\\Vinod\\Java\\Others\\chromedriver.exe");
    WebDriver driver = new ChromeDriver();
    driver.get("http://www.google.com");
    driver.findElement(By.id("lst-ib")).sendKeys("Testing");

以下是輸出:

在此輸入圖像描述

感謝你的幫助 - 謝謝。

據我所知你走得很好。 你只需要有點耐心。

您從data獲得的頁面是我們最初期望從selenium獲得的頁面。 你之后會發布谷歌頁面。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM