Questions tagged [httpbrowsercapabilities]
35 questions
1
vote
2 answers
.Net Android.Browser files
Can anyone tell me where I can find a list of Browser capabilities for the Android platform? I need to construct a .Browser file for it as part of my ASP.Net MVC3 project.
Some links would be much appreciated.
Thanks
Gineer
Update: I've looked at…

Gineer
- 2,358
- 4
- 26
- 40
1
vote
0 answers
Loading .browser file dynamically in a non-ASP.net website applications
I have an offline process that needs to do some analysis on User-Agent strings, that are logged from requests on our production machines, the problem is I need to use the .browser file that has the required filters to parse & recognize the browsers…

bashmohandes
- 2,356
- 1
- 16
- 23
1
vote
2 answers
HttpBrowserCapabilities missing some information?
I'd like to use the Request.Browser property (HttpBrowserCapabilities class) to determine some properties of the client's system.
However I seem to run into some limitations of this class. I can't find some properties that should be relatively easy…

Carvellis
- 3,992
- 2
- 34
- 66
1
vote
2 answers
Browser capabilities in spec description in Protractor Jasmine
I want to generate two separate report for a single test case. For that, I am using browser.getCapabitities method in the test by which I am getting the browser name and version.
Now, when I use this variable at the end of the spec description, the…

nick_tec
- 49
- 10
1
vote
4 answers
Has anyone got HttpBrowserCapabilities working in asp.net
HttpBrowserCapabilities browse = Request.Browser;
just seems to bring back IE or Netscape for all other browsers.
I have updated the C:\WINDOWS\system32\inetsrv browscap.ini file on the developer pc that has asp.net c#.
My requirement is to trap the…

Hunt
- 279
- 1
- 3
- 13
1
vote
1 answer
Is there a way to use DesiredCapabilities for getting a non-remote browser in Selenium WebDriver?
In Seleneium one can easily create WebDriver objects by either creating them directly
driver = new FirefoxDriver();
or be using DesiredCapabilities with a remote web driver
DesiredCapabilities capabilities = new…

MaxM
- 625
- 7
- 13
1
vote
1 answer
Does Request.Browser work always as expected?
I have the following piece of code to add the right CSS file in the "head" depending on browser,
string browserName = Request.Browser.Browser;
string browserVersion = Request.Browser.Version;
Control Head =…

theraneman
- 1,620
- 4
- 18
- 32
0
votes
2 answers
Check if (mobile)browser support background images
I am building a mobile site and the footer has an background.
I want to check if the browser supports css property, background-image, if true display background with specific html, else display a different set of html.
I am using the following…

Marc Uberstein
- 12,501
- 3
- 44
- 72
0
votes
1 answer
Send custom user-data-dir when interating with ChromeDriver and MSXML2.ServerXMLHTTP (VBA)
I'm trying to open an instance of Google Chrome using ChromeWebDriver and MSXML2.ServerXMLHTTP on VBA. The code works fine to open a new instance of the browser, but when I try to send to the WebDriver a custom user-data-dir (stored in…

tdmsoares
- 533
- 7
- 24
0
votes
1 answer
the type or namespace name 'HttpBrowserCapabilitiesBase' does not exist in the namespace 'System.web' in .net core 2.2
I am getting the title error when I do the code in .netcore2.2.
Following is my code,
var browser = Request.Browser;
System.Web.HttpBrowserCapabilitiesBase myBrowserCaps = browser;
HttpBrowserCapabilitiesBase in this keyword it showing me the title…

s.k.Soni
- 1,139
- 1
- 19
- 37
0
votes
1 answer
Context.Request.GetHttpContext() returns null in SignalR server for browser capabilities
I'm trying to get Browser capabilities and remote IP address of the client from the SignalR server. I have used Context.Request.GetHttpContext() as per many suggestions instead of HttpContext.Current. But, I am still getting 'null'. Any help would…

Vishal Pinto
- 31
- 3
0
votes
1 answer
Is using HttpBrowserCapabilities best Practice for OS and mobile detection?
I would like to know if using HttpBrowserCapablilties that i got from HttpContext.Request.Browser is the best way for me to check if the request is coming from a windows desktop machine and is not a mobile device.
See below for example of how i am…

Gys Rademeyer
- 360
- 2
- 8
0
votes
3 answers
Angular 2 app not supporting in IE11
I have an angular 2 app setting up with webpack. I want to support the app in Internet explorer 11.
In my package.json
"scripts": {
"build": "webpack --progress",
"build:prod": "webpack -p --progress --config=webpack.prod.config.js",
…

sainu
- 2,686
- 3
- 22
- 41
0
votes
2 answers
Detecting IE10 and older in ASP.NET
I support an ASP.NET MVC site that redirects users to an error page if they are on IE7 or earlier.
if (Request.Browser.Browser == "IE" && Request.Browser.MajorVersion <= 7)
{
return RedirectToAction("Browser","Error");
}
I now need to make a…

Isaac
- 277
- 4
- 17
0
votes
1 answer
Why does HttpBrowserCapabilities not work at all?
I've got a web app targeting .net 3.5 and im trying to render browser specific content, specifically targeting iPads. I've visited my page from various browsers including iPhone, iPad, Chrome, Safari and the Request.Browser variables always seem to…

Snives
- 1,226
- 11
- 21