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

How to display the data in "os" column and "browser" column #177

Closed
dharnapahuja opened this issue Sep 12, 2019 · 8 comments
Closed

How to display the data in "os" column and "browser" column #177

dharnapahuja opened this issue Sep 12, 2019 · 8 comments

Comments

@dharnapahuja
Copy link

I am generating a report for my tests and I notice that the browser name appears correctly, but no version number appears next to it. Also, the os column shows "ANY", whereas I specify the platform as macOS X.

I want to be able to display this data for safari, chrome, edge and Firefox. How can I do that?

@miller45
Copy link
Collaborator

miller45 commented Sep 13, 2019

@dharnapahuja
The platform is detected by the webdrivers regardless of what you provide under capabilities.
Does you selenium server run on windows or server and/or 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...

About the browsers version there something I can do because it seems that sometimes the value is capabilities.get("version") and sometime capabilities.get("browserVersion")

@miller45
Copy link
Collaborator

I just noticed webdrivers differ in how they report the plaform e.g. firefox (geckodriver) reports "windows" and chrome reports "windows nt".

@dharnapahuja
Copy link
Author

I run protractor locally but the tests run on sauce labs. If you could fix the browser for now, that would be great.

@dharnapahuja
Copy link
Author

Also, is there no way logs can be supported on all other browsers as well? I know that logs are only working on Chrome as of now

@miller45
Copy link
Collaborator

miller45 commented Sep 14, 2019

@dharnapahuja I put up an own issue for browerslogs...maybe I find out how this can be done with firefox in the future.
I also requested a free account on sauce labs yesterday...so I can test with more browsers

@miller45
Copy link
Collaborator

@dharnapahuja The issue with browser version is now fixed in version 1.3.3

@miller45
Copy link
Collaborator

@dharnapahuja I does not look good for having logs from firefox. The basic discussions are not finished in geckodriver repo: mozilla/geckodriver#284

@miller45
Copy link
Collaborator

Browser version and OS is fixed (as far as its possible from reporters perspective)

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