Getting a JSON Error trying to use EdgeStart command...
Moderators: Dorian (MJT support), JRL
Getting a JSON Error trying to use EdgeStart command...
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
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
- Dorian (MJT support)
- Automation Wizard
- Posts: 1388
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Getting a JSON Error trying to use EdgeStart command...
Yes, we have a Custom Scripting Service. Message me or go here
Re: Getting a JSON Error trying to use EdgeStart command...
Hey, Dorian
Followed the steps and it's still giving the same error.
I downloaded the correct version.
Followed the steps and it's still giving the same error.
I downloaded the correct version.
Re: Getting a JSON Error trying to use EdgeStart command...
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%
- Dorian (MJT support)
- Automation Wizard
- Posts: 1388
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Getting a JSON Error trying to use EdgeStart command...
Your session ID in EdgeStart and EdgeNavigate don't match.
You're creating strSessionID but then trying to navigate using session_id
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) .
You're creating strSessionID but then trying to navigate using session_id
Code: Select all
EdgeStart>session_id
EdgeNavigate>session_id,url,%TheURL%
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
Re: Getting a JSON Error trying to use EdgeStart command...
Dorian (MJT support) wrote: ↑Mon Apr 10, 2023 11:11 pmYour 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 pmWhat 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.
- Dorian (MJT support)
- Automation Wizard
- Posts: 1388
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Getting a JSON Error trying to use EdgeStart command...
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
Re: Getting a JSON Error trying to use EdgeStart command...
It stops me cold until I sign in. Then it navigates to the URL specified in EdgeNavigate just fine.Dorian (MJT support) wrote: ↑Tue Apr 11, 2023 8:29 amThat'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?
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.