My Selenium RC code is launching the browser but it is taking me to C:\Users\Kanishka\AppData\Local\Temp\customProfileDir3e16427300054effa807e843dd1a332f\core\Blank.html instead of the intended URL.

The code I have written is very simple and I am using all default Selenium settings.

import grails.plugins.selenium.*
import org.junit.*
import static org.junit.Assert.*
import static org.hamcrest.Matchers.*

class NewTests extends GroovyTestCase 
    void testHomepageLoads() 
        assertTrue selenium.isTextPresent("Welcome to Grails")
  • 1
    Which version of Selenium are you using? Are you trying to launch IE? – user246 Feb 8 '12 at 11:14
  • user1728, welcome to SQA. It may be easier to help you if you can update your question with the version of Selenium you are using. My guess is that this problem is environmental and does not have anything to do with Grails. – user246 Feb 11 '12 at 23:38
  • hi. i got it to work. i just changed url from *iexplore to *iexploreproxy in the seleniumconfig.groovy file. thanks a lot – Kanishka Choudhury Feb 13 '12 at 5:35
  • You should really look into upgrading to WebDriver - its more stable. docs.seleniumhq.org/download – MinimalMaximizer Mar 14 '14 at 23:48

From the OP, via comment:

I got it to work. I just changed the url from *iexplore to *iexploreproxy in the seleniumconfig.groovy file.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.