Getting error - org.openqa.selenium.WebDriverException: Component returned failure code

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting error - org.openqa.selenium.WebDriverException: Component returned failure code

swtester
Hi,
  I was going thro the 2nd video - 2nd Selenium Training Session - Beginning with WebDriver ... I tried to execute the wikipedia test+testng . i am getting the following error. Could you pls check and let me know.

org.openqa.selenium.WebDriverException: Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI] Command duration or timeout: 18 milliseconds Build info: version: '2.28.0', revision: '18309', time: '2012-12-11 20:21:18' System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_20' Session ID: 73ecdd79-23c1-49f9-b71a-c6d587709653 Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{platform=XP, acceptSslCerts=true, javascriptEnabled=true, browserName=firefox, rotatable=false, locationContextEnabled=true, version=17.0.1, cssSelectorsEnabled=true, databaseEnabled=true, handlesAlerts=true, browserConnectionEnabled=true, nativeEvents=true, webStorageEnabled=true, applicationCacheEnabled=true, takesScreenshot=true}] at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:187) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:533) at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:276) at com.selenium.samples.Wikipage.testwiki(Wikipage.java:13) Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException: Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI] Build info: version: '2.28.0', revision: '18309', time: '2012-12-11 20:21:18' System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_20' Driver info: driver.version: unknown

Note : I verified some of the things like,  The following jar files are available in lib folder:
operadriver-1.1.jar
commons-collections-3.2.1.jar
httpmime-4.2.1.jar


Thanks,

Reply | Threaded
Open this post in threaded view
|

Re: Getting error - org.openqa.selenium.WebDriverException: Component returned failure code

swtester
After executed the scripts, firefox browser was opening and getting closed and it is not going to wikipedia site and got the above mentioned error.

Listed below the scripts.. ( Apart from this - SelTestCase.java & testng.xml file)

---------------------------------
package com.selenium.samples;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.Test;

@Test
public class Wikipage extends SelTestCase {

        public void testwiki(){
               
                driver.get("htt//www.wikipedia.org");
                driver.findElement(By.id("searchInput")).sendKeys("Selenium Software");
                driver.findElement(By.name("go")).click();
                                               
        }
       
}

Reply | Threaded
Open this post in threaded view
|

Re: Getting error - org.openqa.selenium.WebDriverException: Component returned failure code

softwaretestingforum
Administrator
Th URL does not seem right -

driver.get("htt//www.wikipedia.org"); 

It should be -

driver.get("http//www.wikipedia.org"); 
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: Getting error - org.openqa.selenium.WebDriverException: Component returned failure code

swtester
Tarun,

 Thanks for your time.