php - Selenium/PHPUnit: End a session when re-using browser sessions? -



php - Selenium/PHPUnit: End a session when re-using browser sessions? -

i'm runnig selenium tests phpunit.

i have long test sequences split several test files create them easier maintain. higher speed re-use browser session these cases.

i able reuse sessions (phpunit_extensions_seleniumtestcase::sharesession(true)), cannot figure out how end session , open new 1 before starting next tests (which require fresh browser session).

i have tried using next line in teardown() method of test kill current browser session

$this->stop();

this kills browser, generates error: "session xxxxxx not exist or ended"

=> exactly, how selenium start new session in case?

thanks clues.

when create few tests method in test class (test file), i don't use $this->stop(); in teardown() method. noticed @ end of each test, browser closes itself. set browser , browser url in setup() method , open in every test method using

$this->open('/');

have tried in simple way?

php selenium phpunit

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -