facebook - PHP Fatal error: Class 'RemoteWebElement' not found in -
i have symfony project run normal in command line:
php app/console server:run
but, want run inside phpstorm. when try this, gives fatal error:
php fatal error: class 'remotewebelement' not found in
i tried oficial documentation of classe: http://facebook.github.io/php-webdriver/classes/remotewebelement.html. didn't found information culd me.
i added compose dependency:
composer require facebook/webdriver
but had no effect!
=======================================
i'll explain step-step how bug (it long!):
i have:
- php 5.5.9
- phpstorm 10.0.3
- composer 1.0-dev (7117a5775ffdcdfd31bbd52a138a6f9c65e7e3c2) 2016-02-03
so, create new symfony project (current version 3.0) , add composer dependencies:
symfony new project cd project composer update
then, open project inside of phpstorm , configure settings run project:
settings -> languages & frameworks -> php
"php language level": 5.5
"interpreter": 5.5.9
add through plus(+) php folder:
/usr/share/php
click 'ok'
now, try run de project through phpstorm shortcut: ctrl+shif+f10.
will appear bug:
php fatal error: class 'symfony\bundle\frameworkbundle\test\webtestcase' not found in
solve way inside of phpstorm: settings -> languages & frameworks -> php -> phpunit choose: "use custom autoloader" and, in field "path script", informe autoloader's address. example: /home/murilo/git/slu/app/autoload.php. click 'ok'.
again, try run de project through phpstorm shortcut:
ctrl+shif+f10
will appear bug:
php fatal error: class 'doctrine\tests\common\cache\cachetest' not found in
solve through command inside project folder:
composer require maslosoft/cachetest:dev-master -n --no-progress
for last time, try run de project through phpstorm shortcut: ctrl+shif+f10
will appear bug:
php fatal error: class 'remotewebelement' not found in
i'm @ bug.
please, knows how can overcome bug? o.o
i struggled same exact issue have described. after breaking head of day problem, found issue.
when execute command php app/console server:run
in command line, sets server , runs website. however, when run project in phpstorm, doesn't run server runs phpunit. need configure php web application in phpstorm , run that.
check image below have configured website. when run web application, run url , show in browser.
Comments
Post a Comment