Results 1 to 2 of 2

Thread: Help with Selenium and Spring error

  1. #1
    Join Date
    Aug 2012
    Posts
    1

    Default Help with Selenium and Spring error

    Hi all, I am new to all this and setting it up has been a bit overwhelming. I am using ant to run a bunch of tests using testng suites.

    It gets to a point where I receive this error:


    [testng] Failed to invoke @Configuration method org.springframework.test.context.testng.AbstractTe stNGSpringContextTests.springTestContextPrepareTes tInstance:Error creating bean with name 'com.mystuffs.tests1.CreateTest1': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire method: public void com.mystuffs.web.BrowserTest1.setBrowser(com.mystu ffs.web.browser.Browser); nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'browser' defined in class path resource [applicationcontext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Error while launching browser


    It looks like a dependency issue of some sort, but I am not sure how to proceed. Any advice is appreciated!

  2. #2

    Default

    It's a bit difficult to be much accurate without knowing your exact configuration, but it could be the case you're not including the com.mystuffs.tests1 to the component scan.

    Please check that, and then let me know.

    For future posts, please consider to include more details about your current configuration.

    Carlos.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •