Ankur
Ankur

Reputation: 11739

setting up selenium with java

I want to automate some GUI tasks using Selenium.
And integrate this task in my automation suite written in Java.
Being totally new to selenium, I did some research on the same.
So what I'm configured is this:-

Now while running this as Junit test from Eclipse I get the following error

org.openqa.selenium.WebDriverException: Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI)

This looked like some problem with the URL but I'm not sure what.
These are parts of the relevant code

private WebDriver driver;
private String baseUrl="https://172.25.18.53:9443";  //IS THIS CORRECT ??
driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);


driver.get("/");
driver.findElement(By.name("Username")).clear();
driver.findElement(By.name("Username")).sendKeys("admin");
driver.findElement(By.name("Password")).clear();
driver.findElement(By.name("Password")).sendKeys("asdf1234");
driver.findElement(By.name("UserLoginButton")).click();
driver.findElement(By.linkText("Security")).click();
driver.findElement(By.linkText("Token Vaults")).click();
// SO ON ...

Any pointers what could be the issue here ?

To add to the above:

Upvotes: 2

Views: 1334

Answers (1)

user591593
user591593

Reputation:

you are supposed to put the address on the get method:

driver.get("https://172.25.18.53:9443");

Upvotes: 2

Related Questions