Selenium, Citrix and Windows Server 2016

55 views
Skip to first unread message

Wolfgang Stecher

unread,
Jul 22, 2022, 1:57:28 AM7/22/22
to Selenium Users
Hello,

I need help please.

- If I start Google Chrome manually in Windows 10 and load the URL to the Citrix Workplace I get the input fields for username and password.
- If I start Google Chrome with Selenium and load the URL with the code below in Windows 10 I get the input fields for username and password.
- If I start Google Chrome manually in Windows Server 2016 and load the URL to the Citrix Workplace I get the input fields for username and password.
- If I start Google Chrome with Selenium and load the URL with the code below in Windows Server 2016 I get the button "Detect Citrix Workspace app"

Why do I not get the input fields if I load the browser with selenium?
All works fine on the same system if I made everything manually!
The workspace app is installed on this system and will be found if I made everything manually but will not befound if I start the browser with selenium.

This is the code:

Dim Driver As New ChromeDriver
Driver.Start "Chrome"
Driver.Get "https://workplace.[...]/Citrix/[...]/"

Wolfgang Stecher

unread,
Jul 22, 2022, 2:48:39 AM7/22/22
to Selenium Users
Hello,

the problem is solved.
I found a workaround by adding the following to the registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\URLAllowlist]
"1"="receiver://*"

After this I always see the button "Detect Citrix Workspace app" but without the popup of Google Chrome and after a click on the button the workspace app will automatically be detected and I see the input fields for username and password


David

unread,
Jul 22, 2022, 1:33:25 PM7/22/22
to Selenium Users
Curious how you came upon the fix. I wonder why the difference between manual & Selenium triggered browser. Maybe it has to do with different browser profiles, and security policy on the Windows Server 2016.

Is that a corporate managed Windows Server 2016 machine? Or you had full access and installed and configured Windows Server 2016 yourself?

For manual vs Selenium difference, did you try loading profile with Selenium or using incognito mode for manual case?
Reply all
Reply to author
Forward
0 new messages