i have started with selenium few weeks back. i have designed my test this way
- using @BeforeClass i am creating a object and calling a method of class which is opening the browser and performing a login operation.
- i have another method which has the selenium code for the test operation i want to perform, in my case boundary value analysis
- now i have created a @Test method which calls this previous method and passes values to it required for the test
The problem i am facing is 1. the browser is launched and the loging operation takes pace, after this the browser tries to open the the home page again. 2. I wanted to know if this is correct way to write selenium tests scripts
also if i remove the step 1 and include login method in step 2 my test runs fine I am using selenium-rc and STS on groovy on grails