Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All browsers besides Chrome, do not display the browerversion and platform type #172

Closed
dharnapahuja opened this issue Sep 9, 2019 · 10 comments

Comments

@dharnapahuja
Copy link

Hi,

I am running running tests on several browsers and browser versions and platforms. Once the report is generated, I see that the OS and platform columns are empty for Safari, Firefox etc, but works fine for Chrome. Why is that?

@miller45
Copy link
Collaborator

@dharnapahuja I will have a look at that later...

@miller45 miller45 added the bug label Sep 11, 2019
@miller45
Copy link
Collaborator

It looks like the attribute for platform was switched to platformName, and chrome is still supporting the old property...I will fix this soon...
After the fix you will notice that if you test with chrome the platform will be "Windows NT" and if you test with "Firefox" it will be "windows". That is because the webdrivers are reporting the it differntly...

@miller45
Copy link
Collaborator

@dharnapahuja I released the version 1.3.2 just now... The os column should now also work with firefox

@dharnapahuja
Copy link
Author

I don't think this works still. I am passing in the platfromName as macOSX, bit returns Windows NT, which is wrong

@miller45 miller45 reopened this Sep 13, 2019
@miller45
Copy link
Collaborator

Does you selenium server run on windows or run locally?

Here is a example how the platform is "detected"

const capabilities = await browser.getCapabilities();
let  os:  capabilities.get("platform") || capabilities.get("platformName") 

As you can see if the webdrivers return wrong values than there is nothing I can do about it...

@dharnapahuja
Copy link
Author

Screen Shot 2019-09-13 at 1 22 28 PM

@dharnapahuja
Copy link
Author

I am using SauceLabs to run my tests. They are running on a server. The version and platform get displayed correctly for chrome, but not for Firefox

@miller45
Copy link
Collaborator

This browser version column is fixed in version v1.3.3

@dharnapahuja
Copy link
Author

Hi, thank you for fixing that version number. It now works for Firefox as well. But the OS column still displays "ANY". Do you think that has something to do with selenium?

@miller45
Copy link
Collaborator

Yes when selenium/webdrivers drivers says "ANY" I cannot do anything. But on my local system it reported windows. Could also related to sauce labs...you can configure at lot of stuff there too.

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

No branches or pull requests

2 participants