I am new to Selenium and trying to open the localhost: 3000 page from Chrome through the selenium driver. The code:
import com.google.common.base.Function; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebDriverException; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class SeleniumTests { public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "C://chromedriver_win32//chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("localhost:3000"); } }
However, this opens my chrome window with "data" ;, The chrome version is 50.0.2661.94
Any idea what the problem is?
google-chrome google-chrome-devtools selenium selenium-webdriver ui-automation
learntogrow-growtolearn
source share