Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

FirefoxDriver log content does not look correct when calling wd.manage().logs() #6536

Open
lukeis opened this issue Mar 4, 2016 · 4 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 6536


What steps will reproduce the problem?
1. open the attached page in FirefoxDriver
2. run the java test code as shown


What is the expected output? What do you see instead?

When the page is done loading after get(), I expect exactly two errors (due to the
console.error() calls )

I verified that the Web console in Firefox reports what I expect

[14:02:12.253] "Log Message"
[14:02:12.253] "Info Message"
[14:02:12.254] "Warn Message"
[14:02:12.254] "Error Message"
[14:02:12.254] "Warn Message2"
[14:02:12.254] "Info Message2"
[14:02:12.254] "Error Message2"


Yet when I call 

    driver.get(testpage);
    driver.manage().logs().get(LogType.BROWSER);


I get the following, which does not contain the error messages I threw with console.error
etc, so my assertions about count of error message with level SEVERE fails


This works fine on Chrome


[2013-11-06T14:02:09-0500] [INFO] Could not read chrome manifest 'file:///c:/projectDir/core/target/it-browserInstallRoot/firefox-release/chrome.manifest'.

[2013-11-06T14:02:09-0500] [INFO] LOG addons.xpi: startup

[2013-11-06T14:02:09-0500] [INFO] LOG addons.xpi: Skipping unavailable install location
app-system-local

[2013-11-06T14:02:09-0500] [INFO] LOG addons.xpi: Skipping unavailable install location
app-system-share

[2013-11-06T14:02:09-0500] [INFO] LOG addons.xpi: Ignoring file entry whose name is
not a valid add-on ID: C:\Users\AUSER\AppData\Local\Temp\anonymous8323614602719530437webdriver-profile\extensions\webdriver-staging

[2013-11-06T14:02:09-0500] [INFO] LOG addons.xpi: checkForChanges

[2013-11-06T14:02:09-0500] [INFO] LOG addons.xpi: No changes found

[2013-11-06T14:02:09-0500] [WARNING] Trying to re-register CID '{e26dbdcd-d3ba-4ded-88c3-6cb07ee3e9e0}'
already registered by file:///C:/Users/AUSER/AppData/Local/Temp/anonymous8323614602719530437webdriver-profile/extensions/fxdriver@googlecode.com/components/prompt_service.js.
[2013-11-06T14:02:09-0500] [INFO] Native module at path 'C:\Users\AUSER\AppData\Local\Temp\anonymous8323614602719530437webdriver-profile\extensions\fxdriver@googlecode.com\platform\WINNT_x86-msvc\components\imehandler.dll'
doesn't export symbol `NSModule`.

[2013-11-06T14:02:09-0500] [INFO] Could not read chrome manifest 'file:///c:/projectDir/core/target/it-browserInstallRoot/firefox-release/browser/extensions/%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D/chrome.manifest'.

[2013-11-06T14:02:09-0500] [INFO] While creating services from category 'profile-after-change',
could not create service for entry 'Disk Space Watcher Service', contract ID '@mozilla.org/toolkit/disk-space-watcher;1'

[2013-11-06T14:02:09-0500] [INFO] Blocklist::_loadBlocklistFromFile: blocklist is disabled

[2013-11-06T14:02:09-0500] [INFO] Warning: unrecognized command line flag -foreground

[2013-11-06T14:02:11-0500] [INFO] PAC file installed from http://inside-files/fs/cache.pac

[2013-11-06T14:02:11-0500] [WARNING] Unknown property '-moz-box-shadow'.  Declaration
dropped.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Unknown property '-moz-box-shadow'.  Declaration
dropped.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected end of value but found '0'.  Error in
parsing value for 'padding-left'.  Declaration dropped.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected media feature name but found '-webkit-min-device-pixel-ratio'.
[2013-11-06T14:02:11-0500] [WARNING] Expected media feature name but found '-webkit-min-device-pixel-ratio'.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Unknown pseudo-class or pseudo-element '-ms-clear'.
 Ruleset ignored due to bad selector.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Unknown property 'zoom'.  Declaration dropped.
[2013-11-06T14:02:11-0500] [WARNING] Unknown pseudo-class or pseudo-element 'selected'.
 Ruleset ignored due to bad selector.
[2013-11-06T14:02:11-0500] [WARNING] Error in parsing value for 'background-position'.
 Declaration dropped.
[2013-11-06T14:02:11-0500] [WARNING] Unknown property 'zoom'.  Declaration dropped.
[2013-11-06T14:02:11-0500] [WARNING] Error in parsing value for 'filter'.  Declaration
dropped.
[2013-11-06T14:02:11-0500] [WARNING] Unknown property 'zoom'.  Declaration dropped.
[2013-11-06T14:02:11-0500] [WARNING] Error in parsing value for 'width'.  Declaration
dropped.
[2013-11-06T14:02:11-0500] [WARNING] Unknown property 'zoom'.  Declaration dropped.
[2013-11-06T14:02:11-0500] [WARNING] Unknown property 'xmargin-left'.  Declaration
dropped.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Unknown property 'zoom'.  Declaration dropped.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Unknown property 'zoom'.  Declaration dropped.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected end of value but found '\30 '.  Error
in parsing value for 'border-right'.  Declaration dropped.
[2013-11-06T14:02:11-0500] [WARNING] Error in parsing value for 'margin-right'.  Declaration
dropped.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Expected declaration but found '*'.  Skipped to
next declaration.
[2013-11-06T14:02:11-0500] [WARNING] Error in parsing value for 'background'.  Declaration
dropped.
[2013-11-06T14:02:11-0500] [WARNING] Error in parsing value for 'background'.  Declaration
dropped.
[2013-11-06T14:02:11-0500] [WARNING] Error in parsing value for 'background'.  Declaration
dropped.
[2013-11-06T14:02:11-0500] [WARNING] Error in parsing value for 'background'.  Declaration
dropped.
[2013-11-06T14:02:11-0500] [WARNING] Error in parsing value for 'filter'.  Declaration
dropped.
[2013-11-06T14:02:11-0500] [WARNING] Error in parsing value for 'background'.  Declaration
dropped.
[2013-11-06T14:02:11-0500] [WARNING] Error in parsing value for 'background'.  Declaration
dropped.
[2013-11-06T14:02:11-0500] [WARNING] Error in parsing value for 'background'.  Declaration
dropped.
[2013-11-06T14:02:11-0500] [WARNING] Error in parsing value for 'background'.  Declaration
dropped.
[2013-11-06T14:02:11-0500] [WARNING] Error in parsing value for 'filter'.  Declaration
dropped.
[2013-11-06T14:02:11-05...




Selenium version: 2.37
OS: Win7
Browser: Firefox
Browser version: 24


Please provide any additional information below. A sample reduced test
case, or a public URL that demonstrates the problem will intrigue our merry
band of Open Source developers far more than nothing at all: they'll be far
more likely to look at your problem if you make it easy for them!

see attached test page

Reported by binod80 on 2013-11-06 19:12:33


- _Attachment: [testpage.html](https://storage.googleapis.com/google-code-attachments/selenium/issue-6536/comment-0/testpage.html)_
@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reproduced

Reported by barancev on 2013-11-20 07:56:06

  • Labels added: Browser-Firefox

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

any updates?

Reported by binod80 on 2014-01-20 15:39:11

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

seeing the issue with;

Selenium version: 2.45
OS: OSX
Browser: Firefox
Browser version: 33

Reported by jay.udey@workiva.com on 2015-06-05 19:19:45

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 17:45:56

  • Labels added: Restrict-AddIssueComment-Commit

@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant