chrome extension 1.4.0 - redirect

Ask general questions here.
uhxs
Posts: 2
Joined: Fri Jun 30, 2023 10:56 am

chrome extension 1.4.0 - redirect

Post by uhxs » Fri Jun 30, 2023 1:35 pm

Ranorex 10.7.0
Chrome Extension 1.4.0 via Instrumentation Wizard

Start chrome
Input "microsoft.com" in the URL adress field
redirects instantly to "https://google.com"

Removing the extension solves this "issue".

1. Can somebody confirm? We have multiple machines with this. behaviour.
2. Is this intentional?

Regards

dhale
Posts: 79
Joined: Thu Feb 27, 2014 7:33 pm

Re: chrome extension 1.4.0 - redirect

Post by dhale » Fri Jun 30, 2023 5:45 pm

heh - I installed Ranorex 10.7.1 and noticed the same thing. I'm submitting a support ticket now for this.

YvesL
Certified Professional
Certified Professional
Posts: 31
Joined: Mon Jan 13, 2020 2:20 pm

Re: chrome extension 1.4.0 - redirect

Post by YvesL » Mon Jul 03, 2023 4:18 pm

I have tried to browse to https://microsoft.com/, in Chrome AND Edge, with add-on ver 1.4.0.

I'm NOT using Ranorex Studio 10.7 but an older version (10.1.6).

The same thing happens: it gets redirected to https://www.google.com/

Nothing like that with add-on ver 1.3.1.

Can Ranorex Studio 10.7.1 use that version ?

I guess it installs and configures ver 1.4.0 by default as this is the case since Ranorex Studio 10.5.

Please keep us posted. :-)

Yves

dhale
Posts: 79
Joined: Thu Feb 27, 2014 7:33 pm

Re: chrome extension 1.4.0 - redirect

Post by dhale » Mon Jul 03, 2023 4:54 pm

From what I see 10.7.1 is not able to use 1.3.1. At least not on my VMs - nothing is able to be found/recognized in Edge.

mrt
Posts: 250
Joined: Mon Mar 16, 2020 11:31 am

Re: chrome extension 1.4.0 - redirect

Post by mrt » Mon Jul 10, 2023 7:56 am

Yes, issue is known, I received following workaround from the support for Chrome (I do not use Edge):

1. Open Chrome and navigate to chrome://version in the Address bar
2. Locate the Profile Path as shown below, copy it, and then close Chrome:
Image
3. Close Chrome and check the System Tray or the Task Manager to ensure that Chrome isn’t running in the background or the rest of these steps won’t work.
4. Open Windows Explorer and navigate directly to that folder by clicking in the address bar at the top and pasting in the path copied from Step 2 above.
5. Open the Extensions folder, and then open the folder associated with the Ranorex Extension (which should be: nappeokhoobbncgoehjdnpbfhbejlaod), and finally open the folder associated with the version number (currently 1.4.0_0), which should appear as below. This is the extension data that Chrome uses.
Image
6. Locate the “rules.json” file and delete it.
7. Locate the “manifest.json” file and replace it with the one you can download from https://ranorex-my.sharepoint.com/perso ... Files&ga=1.
8. Finally, open the _metadata folder, and delete the “generated_indexed_rulesets” folder.
9. Open Chrome and try navigating to microsoft.com to run a quick test and ensure that it doesn’t redirect to google.com.

After executing these tests, I could access microsoft.com again, but unfortunately Chrome is now reporting an extension error:
ImageImage

I hope Ranorex will fix the addons soon.

bkruse
Posts: 39
Joined: Tue Jul 20, 2010 12:19 pm

Re: chrome extension 1.4.0 - redirect

Post by bkruse » Wed Sep 13, 2023 2:59 pm

Oh my dear, it took us long time to figure out what the cause is.
But looking backwards, I had this issue since I upgraded to 10.7.1, yes.
Some project plans which reside on project.microsoft.com were not loadable anymore, so quit some impact.

Anyways, I can confirm that description above by mrt works - at least partly.
However, I cannot download the mentioned alternative manifest.json, because the shared link seems to require login.
Without the alternative manifest.json, chrome does not redirect anymore, but Ranorex extension does not start.
Any way to provide this alternative manifest.json file?

mrt
Posts: 250
Joined: Mon Mar 16, 2020 11:31 am

Re: chrome extension 1.4.0 - redirect

Post by mrt » Mon Sep 18, 2023 9:03 am

bkruse wrote:
Wed Sep 13, 2023 2:59 pm
Any way to provide this alternative manifest.json file?
According to Ranorex support the Addon issue is solved and currently in testing cycle, should be in the next release.
For some reason I cannot upload a json file to the forum, so here is the content that you can copy&paste:

Code: Select all

{
   "action": {
      "default_popup": "popup.html"
   },
   "background": {
      "service_worker": "background.js"
   },
   "content_scripts": [ {
      "all_frames": true,
      "js": [ "rxpath.min.js", "msgport.js", "nodemap.js", "content.js" ],
      "match_about_blank": true,
      "matches": [ "\u003Call_urls>" ],
      "run_at": "document_start"
   } ],
   "content_security_policy": {
      "extension_pages": "script-src 'self'; object-src 'self'"
   },
   "description": "Ranorex automation support.",
   "host_permissions": [ "http://*/*", "https://*/*", "*://*/*", "*://example.com/*", "*://testbook.com/*" ],
   "icons": {
      "128": "icon128.png",
      "16": "icon.png",
      "32": "icon32.png",
      "48": "icon48.png"
   },
   "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqGgvgPgd3tpOztB5/2Ow643Tttd+fmAago7VuzJKIGL1FjdfvfyuW1TtfCPKzaccRIeicBZDOkc55Xq0yfIk/Zvwx+9C2G0hw3gx98DaLiqCjchnXcgTLX/yiPAhSF3wHSthVsJit8qMXCNs6d+w7ol+y2hqtzxLIA4YrI3d9u0QlOWv5Do7IVRy7v9BvQCqk8wgmjbCHRoHQ0rVpLXJsS9ICmJJ3y6nxIQ5cLvuKKbqSNMvPZMRNZ8s03pnpmSGLKbmBka975ivwMfP8iiSJlmjeAlpntMjeIGUJrtYiIdnYAPqIsfUN7rmEfpX//FTRglUmW4J2Ku7VRBs34RYKQIDAQAB",
   "manifest_version": 3,
   "name": "Ranorex Automation",
   "permissions": [ "background", "nativeMessaging", "storage", "alarms", "declarativeNetRequest", "declarativeNetRequestFeedback" ],
   "update_url": "https://clients2.google.com/service/update2/crx",
   "version": "1.4.0",
   "web_accessible_resources": [ {
      "extension_ids": [ "egdlgaljianpgdlmfijpphbadibfncdm" ],
      "matches": [ "\u003Call_urls>" ],
      "resources": [ "rxpath.min.js", "msgport.js", "nodemap.js", "content.js" ]
   } ]
}