-
Notifications
You must be signed in to change notification settings - Fork 268
Open
Description
Hello,
I'm trying to make phpunt-selenium work with Selenium Webdriver 3 + Firefox + Geckodriver, is phpunit-selenium comptabile ?
php : 7.0
phpunit : 6.5.12
phpunit-selenium : 4.1.0
geckodriver : 0.19 (or 0.21)
Firefox : 57.0.4
I mange to connect Phpunit and Geckodriver/Firefox, open a page with $this->url(), but when doing $this->byCssSelector('DIV'), i got an Exception :
InvalidArgumentException: Element not found.
vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase/Element.php:82
vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase/Element/Accessor.php:136
vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase/Element/Accessor.php:175
vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase/Element/Accessor.php:72
vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php:416
After investigating, (geckodriver log + var_dump in vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase/Element.php:82), geckodriver returns a response :
array(1) {
'element-6066-11e4-a52e-4f735466cecf' =>string(36) "4d645ed2-8069-4fb6-9f86-e1a33311ac7b"
}
an Element.php is waiting for array["ELEMENT"]
(see mozilla/geckodriver#391)
So i think it's not compatible with geckodriver and Selenium 3 + Firefox ?
duzitug
Metadata
Metadata
Assignees
Labels
No labels