Getting a JSON Error trying to use EdgeStart command...

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
rjw524
Pro Scripter
Posts: 104
Joined: Wed May 09, 2012 9:45 pm
Location: Michigan

Getting a JSON Error trying to use EdgeStart command...

Post by rjw524 » Mon Apr 10, 2023 8:46 pm

Hi,

I just upgraded to MS-15 and I'm trying to use the Edge commands.

I downloaded the correct version of MSEdgeDriver to my computer and I'm trying to run EdgeStart but I keep getting the following error from Macro Scheduler:

"Error in: _debug.dbg
Line: 11 - (1.1) Unquoted string in JSON data only valid for dictionary names."

Any idea what this means and how to correct it?

Thanks!

rjw524

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

Re: Getting a JSON Error trying to use EdgeStart command...

Post by Dorian (MJT support) » Mon Apr 10, 2023 9:33 pm

Yes, we have a Custom Scripting Service. Message me or go here

rjw524
Pro Scripter
Posts: 104
Joined: Wed May 09, 2012 9:45 pm
Location: Michigan

Re: Getting a JSON Error trying to use EdgeStart command...

Post by rjw524 » Mon Apr 10, 2023 10:41 pm

Hey, Dorian

Followed the steps and it's still giving the same error.

I downloaded the correct version.

rjw524
Pro Scripter
Posts: 104
Joined: Wed May 09, 2012 9:45 pm
Location: Michigan

Re: Getting a JSON Error trying to use EdgeStart command...

Post by rjw524 » Mon Apr 10, 2023 10:47 pm

rjw524 wrote:
Mon Apr 10, 2023 10:41 pm
Hey, Dorian

Followed the steps and it's still giving the same error.

I downloaded the correct version.
Ok, I closed everything and opened it again and it's asking me to sign in each time instead of just opening a browser. However it's not going to the url that was stated in the example.

Also Edge states at the very top of the page:

"Microsoft Edge is being controlled by automated test software."


This is the code I used:

Code: Select all

let>TheURL=https://www.mjtnet.com/example-form/


Let>EDGEDRIVER_EXE=C:\Users\MyUserName\OneDrive - MyCompany\Desktop


EdgeStart>strSessionID


EdgeNavigate>session_id,url,%TheURL%

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

Re: Getting a JSON Error trying to use EdgeStart command...

Post by Dorian (MJT support) » Mon Apr 10, 2023 11:11 pm

Your session ID in EdgeStart and EdgeNavigate don't match.

You're creating strSessionID but then trying to navigate using session_id

Code: Select all

EdgeStart>session_id
EdgeNavigate>session_id,url,%TheURL%
The "being automated by" message is unavoidable.

What is asking you to log in, and what is it asking you to log into? You should just be able to use the Edge functions to enter login credentials into the site you want to access (if that's what you're referring to) .
Yes, we have a Custom Scripting Service. Message me or go here

rjw524
Pro Scripter
Posts: 104
Joined: Wed May 09, 2012 9:45 pm
Location: Michigan

Re: Getting a JSON Error trying to use EdgeStart command...

Post by rjw524 » Mon Apr 10, 2023 11:49 pm

Dorian (MJT support) wrote:
Mon Apr 10, 2023 11:11 pm
Your session ID in EdgeStart and EdgeNavigate don't match.

You're creating strSessionID but then trying to navigate using session_id

Code: Select all

EdgeStart>session_id
EdgeNavigate>session_id,url,%TheURL%

Ah, ok. I just used the name of the session EdgeStart gave me by default. I understand that much better now.

Dorian (MJT support) wrote:
Mon Apr 10, 2023 11:11 pm
What is asking you to log in, and what is it asking you to log into? You should just be able to use the Edge functions to enter login credentials into the site you want to access (if that's what you're referring to) .

Edge itself asked me to login.

I am using this on my work computer so maybe that has something to do with it, but I get a message saying:

"Your admin needs you to sign in. To use Profile 1 please sign in or switch to a different account."

That being said, I don't have to do that to just open Edge regularly on the machine.

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

Re: Getting a JSON Error trying to use EdgeStart command...

Post by Dorian (MJT support) » Tue Apr 11, 2023 8:29 am

rjw524 wrote:
Mon Apr 10, 2023 11:49 pm
"Your admin needs you to sign in. To use Profile 1 please sign in or switch to a different account."
That's a new one on me. I'll have to refer that to Marcus. Is it stopping you dead in the water or is it allowing you to continue with EdgeNavigate?

Guesses:
I'm wondering if something set by your admin whether we can get round it at all - or maybe use Image Recognition to sign in?
Yes, we have a Custom Scripting Service. Message me or go here

rjw524
Pro Scripter
Posts: 104
Joined: Wed May 09, 2012 9:45 pm
Location: Michigan

Re: Getting a JSON Error trying to use EdgeStart command...

Post by rjw524 » Tue Apr 11, 2023 3:56 pm

Dorian (MJT support) wrote:
Tue Apr 11, 2023 8:29 am
rjw524 wrote:
Mon Apr 10, 2023 11:49 pm
"Your admin needs you to sign in. To use Profile 1 please sign in or switch to a different account."
That's a new one on me. I'll have to refer that to Marcus. Is it stopping you dead in the water or is it allowing you to continue with EdgeNavigate?

Guesses:
I'm wondering if something set by your admin whether we can get round it at all - or maybe use Image Recognition to sign in?
It stops me cold until I sign in. Then it navigates to the URL specified in EdgeNavigate just fine.

I tried Image Recognition but it doesn't work. Eventually MS gives a "Not Responding" error and I have to close out of Macro Scheduler.

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