
Edge shows this window because you have this policy Browser sign-in settings set to 'Force'. You must sign into a profile to use Edge. To fix the issue, you have two methods:
Method 1: Change the policy Browser sign-in settings to 'Not Configured'.
Method 2: If you can't change the policy, you could sign into a profile in Edge first. Then use that profile when automating Edge.
I'm not familiar with webdriverio. I searched online and it shows that you can add the profile path to Edge arguments to specify a profile to use. For example:
'user-data-dir=/Users/username/Local/Microsoft/Edge/User Data'
'profile-directory=Profile 1'
To find the profile path you signed in, you can open edge://version/ in Edge and check the value of Profile path. If it points to 'Default' folder, you only need to set user-data-dir
argument. If it points to 'Profile x' folder, you need to set both user-data-dir
and profile-directory
.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
Yu Zhou