Vagrant와 함께 Laravel 5+를 사용합니다.WebDriver를 Firefox와 함께 사용
내가 사용 셀레늄이 실행되고 :
java -jar vendor/se/selenium-server-standalone/bin/selenium-server-standalone.jar -Dwebdriver.firefox.bin="/usr/bin/firefox"
을 머리가없는 디스플레이 사용 : 나는 다음과 같은 오류가
./vendor/bin/codecept run selenium --steps
:
내가 codeception를 실행할 때sudo Xvfb :10 -ac
을
[Facebook\WebDriver\Exception\UnknownServerException] Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: Error: GDK_BACKEND does not match available displays
내가 사용해야하는 서버 및 포트와 혼동 스럽습니다. 현재 나는 방역하는 곳 이외의 곳에서는 http://localhost:8000
을 통해 사이트에 액세스합니다. 당신은 아래와 같이 selenium-server-standalone.jar
을 실행할 때 실제로 당신이 당신의 시스템에서 다운로드 geckodriver 경로 geckodriver from here을 최신 설정 특성 Dwebdriver.gecko.driver
을 다운로드해야
127.0.0.1 on port 7055.
나는 각도 요소를 테스트 할 수 있도록 궁극적으로 수용 테스트를 시도하고 있습니다. –