Outlook opens in old version in chrome headless mode. How to resolve it in Selenium C# - selenium-chromedriver

While running chrome in headless mode outlook open as in the older version
It should open with the latest outlook web mode
Note: When we run in chrome browser (with head) it opens the outlook with latest UI
Is there anything should i add in ChromeArgument?

Headless mode user agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/109.0.5414.120 Safari/537.36
Whereas the real Chrome user agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
we need to override the chrome argument while initializing the chromedriver
chromeOptions.Add("--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36");

Related

In which version of chrome was the bug started that does not show perfectly formData/params/payload of requests inside devtools?

In which version of chrome was the bug started that does not show perfectly formData/params/payload of requests inside devtools?
This also happens when there is recaptcha-response
My version is 109.0.5414.74 (Official Version) 64 bits, OS Ubuntu 20.04 LTS

Is there a way to upgrade the HTML WebBrowser control in WPF? [duplicate]

Does the WPF WebBrowser control depend on the version of IE that is installed on the user's machine, or does it use a separate library that is consistent across machines? I've read that it only renders in IE7 mode, but I want to make sure there wouldn't be any issues with a user who either doesn't have IE installed or is still on IE6 for some reason.
The MSDN remarks for WebBrowser indicate it rehosts the IE ActiveX control:
The WebBrowser control internally instantiates the native WebBrowser ActiveX control.
The WebBrowser ActiveX control is better known as Shdocvw.dll. This in turn wraps Mshtml.dll, and probably other DLL's given your environment. One caveat of rehosting this control is its setting for Browser Emulation:
For applications hosting the WebBrowser Control, the default value is 7000. To control the value of this feature by using the registry, add the name of your executable file to the following setting and set the value to match the desired setting.
0x7000 means IE7 compatibility mode. Therefore, if you would like your WPF application to render using some other mode you need to update the registry, as adapted from this example:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
"MyApplication.exe" = dword:2328
I created a WPF app with a WebBrowser Control on a machine with IE11 and got this user agent string:
user agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; .NET CLR 1.1.4322)
I created a WPF app with a WebBrowser Control on a machine with IE10 and got this user agent string:
user agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Trident/7.0 indicates IE11 and Trident/6.0 indicates IE10. More about user-agent strings.
The system with IE10 also had the page render differently than the system with IE11. I also verified this with the standalone IE browsers on each system.
I've yet to try it on a system WITHOUT IE or a system running IE6, but it seems that WebBrowser control is related to the version of IE currently installed on the system.

Android application on Windows phone

Is there anyway to run Android application in windows phone (Windows 8.1 denim version).
I was trying to use a application that was developed in android platform and i didn't succeed.
No.
With Windows (Mobile) 10 it will be possible to convert Android and iOS apps into WP apps that can run on the Windows Mobile OS. But for Windows Phone 8.1 there is no possibility so far.
http://www.theverge.com/2015/4/29/8511439/microsoft-windows-10-android-ios-apps-bridges

Not able to run Windows Phone 8 emulator

I have windows 8 pre-installed in my machine. WP8 emulator requires HYPER-V to be enabled in OS but current version of my OS doesn't support HYPER-V feature , but my hardware supports virtualization (I run VMWare on this machine). So my questions are -
Is there any way/hack to run emulator on win8 OS?
How do I upgrade from current OS to windows 8 Pro(I don't have
product key as OS was preinstalled in machine)
*WP8 - Windows Phone 8
If you want Hyper-V, you'll need to upgrade to Windows 8(.1) Pro. There's a built-in feature to do that. In Windows 8.1 just search for more features in Windows settings (Win+W) and click on the only hit. Here is a more detailed guide for Windows 8.

# in URLs getting encoded as %23 and passed through to server

Our single page app contains hash-based URLs (ie #map).
I've had a few errors show up in my logs similar to the one below:
[MissingControllerException] Controller class %23mapController could not be found.
It seems that under some condition the hash tag is being encoded rather than being treated as the special character that it is.
Incidentally, a grep through the source indicates one occurrence of navigation to that particular location,
<a href="#map">
I have not been able to recreate a scenario that triggers this issue. It happens only on infrequent occasion. It has been logged for IE 7-9. It is possible that this error may occur in other browsers, but it has only been recorded for IE. Sample user agents:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; 360SE)
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)
Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0)
Is anyone aware of a scenario under which this behavior might be exhibited?
Perhaps it has something to do with the proper encoding eg UTF-8 vs iso... on your client app.
I had this issue using Spring MVC, the default in my app it was utf but in apache it was iso