Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

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.*

@Mixin(SeleniumAware)
class NewTests extends GroovyTestCase 
{
    void testHomepageLoads() 
    {
        selenium.start()
        selenium.open("http://www.google.co.in/")
        assertTrue selenium.isTextPresent("Welcome to Grails")
    }
}
share|improve this question
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 at 23:48
add comment

1 Answer

From the OP, via comment:

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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