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")
}
}
famousgarkin
3132 silver badges17 bronze badges
asked Feb 8, 2012 at 8:36
-
1Which version of Selenium are you using? Are you trying to launch IE?user246– user2462012年02月08日 11:14:29 +00:00Commented Feb 8, 2012 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– user2462012年02月11日 23:38:12 +00:00Commented Feb 11, 2012 at 23:38
-
hi. i got it to work. i just changed url from *iexplore to *iexploreproxy in the seleniumconfig.groovy file. thanks a lotKanishka Choudhury– Kanishka Choudhury2012年02月13日 05:35:45 +00:00Commented Feb 13, 2012 at 5:35
-
You should really look into upgrading to WebDriver - its more stable. docs.seleniumhq.org/downloadMinimalMaximizer– MinimalMaximizer2014年03月14日 23:48:49 +00:00Commented Mar 14, 2014 at 23:48
1 Answer 1
From the OP, via comment:
I got it to work. I just changed the url from *iexplore to *iexploreproxy in the seleniumconfig.groovy file.
default