Browser detection for IE
Posted: Wed Jan 15, 2014 3:16 pm
Hi,
We are currently trying to use virtual capabilities to identify browser and browser version information for desktops. On the latest .net API version (1.5.0.3) we do not get any information for IE user agents.
As an example, we run the following code:
IDevice device = wurflManager.GetDeviceForRequest(userAgent);
string advertisedBrowser = device.GetVirtualCapability("advertised_browser");
string advertisedBrowserVersion = device.GetVirtualCapability("advertised_browser_version");
and pass the following user agent:
'"Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko"
This should give us MSIE11 as the browser. However, we do not get any results (returns a NULL). This works for Chrome, Firefox and other browsers.
We are currently trying to use virtual capabilities to identify browser and browser version information for desktops. On the latest .net API version (1.5.0.3) we do not get any information for IE user agents.
As an example, we run the following code:
IDevice device = wurflManager.GetDeviceForRequest(userAgent);
string advertisedBrowser = device.GetVirtualCapability("advertised_browser");
string advertisedBrowserVersion = device.GetVirtualCapability("advertised_browser_version");
and pass the following user agent:
'"Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko"
This should give us MSIE11 as the browser. However, we do not get any results (returns a NULL). This works for Chrome, Firefox and other browsers.