Thursday 15 August 2013

laravel - Codeception and Selenium doesn't show actions -



laravel - Codeception and Selenium doesn't show actions -

i'm using laravel codeception , selenium, created new suite called selenium , created configuration file it:

class_name: seleniumtester modules: enabled: - seleniumhelper - webdriver - laravel4 config: webdriver: url: 'http://app.dev:8000/' browser: 'firefox' wait: 3 capabilities: unexpectedalertbehaviour: 'accept'

my test:

$i = new seleniumtester($scenario); $i->wantto('log in visitor'); $i->am('visitor'); $i->haveanaccount(); $i->amonpage('/'); $i->fillfield(loginpage::$usernamefield,loginpage::$username); $i->fillfield(loginpage::$passwordfield,loginpage::$password); $i->click(self::$loginbutton); $i->seeincurrenturl('@uset');

running bin/codecept run selenium open firefox 1 sec blank page , close automatically after then. tests running correctly on console, cannot see steps on firefox great if may prepare it.

what may problem? i'm using mac os x 10.9.5

what haveanaccount() method? maybe there error there , script couldn't run through next steps. in seleniumhelper?

try start codeception in debug mode (to more information) , comment line haveanaccount().

bin/codecept run -d selenium

hth

selenium laravel laravel-4 codeception

No comments:

Post a Comment