Skip to content

getLog("browser") returns an empty array #594

Closed

Description

@leviv

What are you trying to achieve? (Expected behavior)

When calling getLog("browser") I expect the webdriver to return an array containing all of the browser logs.

What do you get instead? (Actual behavior)

The browser returns an empty array. I am able to call getLog("server") and get a nonempty array, but getLog("browser") is always empty no matter how many entries are in the console log

How could the issue be reproduced? (Steps to reproduce)

I am using the code below:

$logs = $this->webDriver->manage()->getLog("browser");
var_dump($logs);

Details

  • Php-webdriver version: 1.6.0
  • PHP version: PHP 7.2.8
  • Selenium server version: Selenium 3.13.0
  • Operating system: MacOS High Sierra 10.13.4
  • Browser used + version: Google chrome Version 67.0.3396.99

Activity

  1. amhoho commented on Nov 22, 2018

    @amhoho

    please try it:

    $caps->setCapability( 'loggingPrefs', ['browser' => 'ALL']);
    var_dump($driver->manage()->getLog('browser'));
  2. ricardoperovano commented on Jul 27, 2019

    @ricardoperovano

    Is it possible to listen to this logs ?

  3. OndraM commented on Nov 30, 2019

    @OndraM
    Collaborator

    This does not seems like an issue of php-webdriver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions