Chrome opens with “Data;” with selenium

后端 未结 9 1482
轻奢々
轻奢々 2020-12-16 10:25

I am a newbie to Selenium and trying to open localhost:3000 page from Chrome via selenium driver. The code is :

import com.google.common.base.Function;
imp         


        
9条回答
  •  温柔的废话
    2020-12-16 11:06

    I've been running in a similar situation, the fix in my case was simply to upgrade chrome webdriver to its latest version (in my case V2.27).

    The cause of showing Data; instead of the real application URL was that:

    WebDriver driver = new RemoteWebDriver(new URL("http://:/wd/hub"), desiredCapabilities);
    

    failed to get created. Instead, driver object was holding a null value.

    So after chrome driver upgrade , it had been created correctly and problem solved.

    Hope this helps who's still stuck!

提交回复
热议问题