ChromeNavigate 404 Not Found

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

ChromeNavigate 404 Not Found

Post by armsys » Sun Apr 05, 2020 7:45 am

The follow script generates the error: 404 Not Found

Code: Select all

Let>CHROMEDRIVER_EXE=C:\chromedriver.exe

//start a Chrome session
ChromeStart>session_id

//navigate to google.com
ChromeNavigate>session_id,url,https://www.google.com/
Please help. Thanks.

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1386
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: ChromeNavigate 404 Not Found

Post by Dorian (MJT support) » Sun Apr 05, 2020 6:13 pm

It works perfectly for me.
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: ChromeNavigate 404 Not Found

Post by Marcus Tettmar » Tue Apr 07, 2020 7:47 am

Works here too. Do you have the correct version of ChromeDriver installed? Is the path correct? Check that it's not blocked in your firewall. Any other errors? What do you see if you run ChromeDriver.exe manually? (See if it is running in task manager and kill it first).
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Re: ChromeNavigate 404 Not Found

Post by armsys » Mon Apr 13, 2020 9:25 am

Thank you for your reply
I test again and still won't work.
My Chrome is a 64-bit version, but the ChromeDriver.exe is a 32-bit version. Would it cause the 404 error?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: ChromeNavigate 404 Not Found

Post by Marcus Tettmar » Mon Apr 13, 2020 2:20 pm

Download the correct version for your version of Chrome here:
https://chromedriver.chromium.org/downloads
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Re: ChromeNavigate 404 Not Found

Post by armsys » Tue Apr 14, 2020 9:05 pm

ChromeDriver 81.0.4044.69
I couldn't locate the 64-bit of ChromeDriver.
The 404 error is caused by the chromedriver_win32, the latest I could find.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: ChromeNavigate 404 Not Found

Post by Marcus Tettmar » Wed Apr 15, 2020 10:02 pm

That's the correct version.

Your script is pointing to c:\chromedriver.exe

Is that where you have saved it?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

tstraub
Newbie
Posts: 2
Joined: Fri Apr 17, 2020 11:41 am

Re: ChromeNavigate 404 Not Found

Post by tstraub » Fri Apr 17, 2020 12:06 pm

I too am having this same issue. I am using the same code (copy/paste what was provided in the sample at https://www.mjtnet.com/manuals/v15/HTML ... start.html), and confirmed that chromedriver.exe is in the root of c:\. To ensure nothing was interfering with it, I closed all other chrome processes, turned off McAfee web filtering, firewall, and threat protection, and I even did a clean boot, not running anything other programs. Chromedriver was not shown in the Task Manager.
When I run the macro (in debug mode), the Let command is fine, but when running the ChromeStart command, a chrome instance starts, the window flashes momentarily, then closes. This is confirmed by watching Task Manager. Chromedriver.exe is listed now in the Task Manager but no chrome instances. Then when executing the ChromeNavigate line, I get the same HTTP/1.1 404 error (as expected since the session_id doesn't exist), and the macro is still running until I stop it.
So it seems to do with ChromeStart>session_id. Any ideas as to why chrome is starting then closing?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: ChromeNavigate 404 Not Found

Post by Marcus Tettmar » Fri Apr 17, 2020 5:03 pm

Try the following:

- kill chromedriver.exe from task manager
- run chromedriver.exe manually - you should now see a window
- try running the macro
- you may now see more useful diagnostic information in the chromedriver window.

I am quite sure this is not a general issue as we have had dozens of positive messages from people achieving great things with the new chrome functions. So I'm a little baffled as to why one or two of you are having issues. Not to pass the buck but neither Chrome or Chromedriver is written by us, and of course there could be other things at play beyond our control. But I would definitely make sure that your version of Chrome is bang up to date and that you have the correct version of Chromedriver to match your Chrome version.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

tstraub
Newbie
Posts: 2
Joined: Fri Apr 17, 2020 11:41 am

Re: ChromeNavigate 404 Not Found

Post by tstraub » Fri Apr 17, 2020 5:14 pm

Bingo! I didn't realize my Chrome was a couple versions down. Upgrading from 64-bit 80.0.3987.163 to 81.0.4044.113 fixed the problem. Many thanks...

Fraig
Newbie
Posts: 1
Joined: Wed Apr 22, 2020 5:19 pm

Re: ChromeNavigate 404 Not Found

Post by Fraig » Wed Apr 22, 2020 5:22 pm

encountered the same problem, thanks decided
I'm so old that I still play counter-strike 1.6 =/

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Re: ChromeNavigate 404 Not Found

Post by armsys » Thu Apr 23, 2020 1:45 pm

Marcus' solution works brilliantly.
Running chromedriver.exe manually is a must.
I find a chromedriver window, but it's merely a DOS command window showing the following text:
Starting ChromeDriver 81.0.4044.69 (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-refs/branch-heads/xxxx@{#xxx}) on
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
As such. no diagnostic information could be found.
Thanks Marcus for your great help.
Sorry for my late reply.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts