| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
📢 Thoughts on this report? Let us know! |
Sorry, something went wrong.
| private readonly string $pageId, | ||
| private readonly PlaywrightConfig $config, | ||
| private readonly LoggerInterface $logger = new NullLogger(), | ||
| ?LoggerInterface $logger = null, |
There was a problem hiding this comment.
I would remove it from here and use only the one from config, and in confing spawn the null one by default.
Sorry, something went wrong.
| private readonly LoggerInterface $logger = new NullLogger(), | ||
| ?LoggerInterface $logger = null, | ||
| ) { | ||
| $this->logger = $logger ?? $config->logger ?? new NullLogger(); |
There was a problem hiding this comment.
Could you update doc/docblock on this ? Or do we consider this a bug?
Sorry, something went wrong.
|
|
||
| private PageEventHandlerInterface $eventHandler; | ||
|
|
||
| private LoggerInterface $logger; |
There was a problem hiding this comment.
| private LoggerInterface $logger; | |
| private readonly LoggerInterface $logger; |
maybe
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
When i set a logger with PlaywrightConfig my expection is that is used also in Page and locator.
$log = new Logger('stdout'); $log->pushHandler(new StreamHandler('php://stdout', Logger::DEBUG)); $playwrightConfig = new PlaywrightConfig( logger: $log, ); $playwright = PlaywrightFactory::create($playwrightConfig);before
now i see in my log
[2026-03-05T09:31:22.553611+01:00] stdout.DEBUG: Navigating to URL {"url":"https://host.local/","options":[]} [] [2026-03-05T09:31:23.210677+01:00] stdout.INFO: Successfully navigated to URL {"url":"https://host.local/"} [] [2026-03-05T09:31:26.109054+01:00] stdout.ERROR: locator.isVisible: Error: strict mode violation: locator('button') resolved to 2 elements: 1) ... [05-Mar-2026 09:31:31 Europe/Berlin] PHP Fatal error: Uncaught Playwright\Exception\TimeoutException: Element not actionable (timeout: 30000ms) in /var/www/sap_et/vendor/playwright-php/playwright/src/Locator/Locator.php:666