instaclick / php-webdriver

W3C and Selenium 2 webdriver "thin client" for php 5.3+ and namespaces.
Other
436 stars 62 forks source link

Type error: Exception::__construct(): Argument #2 ($code) must be of type int, string given #108

Closed mvorisek closed 2 years ago

mvorisek commented 2 years ago

Stack trace:

       Behat\Testwork\Call\Exception\FatalThrowableError: Type error: Exception::__construct(): Argument #2 ($code) must be of type int, string given in vendor/instaclick/php-webdriver/lib/WebDriver/Exception.php:144
      Stack trace:
      #0 vendor/instaclick/php-webdriver/lib/WebDriver/Exception.php(144): Exception->__construct()
      #1 vendor/instaclick/php-webdriver/lib/WebDriver/AbstractWebDriver.php(172): WebDriver\Exception::factory()
      #2 vendor/instaclick/php-webdriver/lib/WebDriver/WebDriver.php(70): WebDriver\AbstractWebDriver->curl()
      #3 vendor/behat/mink-selenium2-driver/src/Selenium2Driver.php(301): WebDriver\WebDriver->session()
      #4 vendor/behat/mink/src/Session.php(70): Behat\Mink\Driver\Selenium2Driver->start()

full CI output https://github.com/atk4/ui/runs/3884923387?check_suite_focus=true incl. installed versions

robocoder commented 2 years ago

@mvorisek I backported some fixes from the master branch to 1.x, and tagged it as 1.4.10. Let me know how that goes.

mvorisek commented 2 years ago

Thank you for your quick reaction, ~CI is still failing: https://github.com/atk4/ui/runs/3894290578?check_suite_focus=true#step:14:14~

mvorisek commented 2 years ago

UPDATE: CI is fine, the issue was in Github Selenium services, see https://github.com/atk4/ui/pull/1682, as it started using Selenium 4.x

How is this repo compatible with Selenium 4.x, is support planned?

robocoder commented 2 years ago

I'll add to my todo list.

What version of Selenium did you downgrade to?

mvorisek commented 2 years ago

https://github.com/SeleniumHQ/docker-selenium/releases

I am using the latest 3.x (3.141.59-20210929), the new 4.x is not compatible. I will close this issue as it was for the php type error.