I am using Laracasts integrated with selenium. I am getting the problem with the log in. After i log in i am nt able to show the new page. The same log in page displays again and again. I need session sharing mechanism for this. Any one has some idea ?
->visit('contract')
->andClick('Add Contract') // This will redirect you to contract/create
->visit('contract/create') // You don't need this one here!
Now for your problem, I'm not sure what's going on here... It works fine on my end!
/** @test */
public function firstTest()
{
$this->login()
->click('create')
->andSee('Add Contract');
}
Instead of visiting the url i need to click the links and go to create page else it will start a new session and new window will appear. I need the solution for