I’d put in my microsoft account, and it would open microsoft edge sign into microsoft.

I am using python and selenium.

If anyone could help it would be highly appreciated!

Thanks

Ive tried this:

from selenium import webdriver
from selenium.webdriver.common.by import By
import time

driver = webdriver.Edge()

driver.get(‘i dont have a link ‘)


As you can see there is no link for the sign in and sync. Would i have to find the button element?

Screenshot-2024-01-03-at-6-14-27-PM

4

From the screenshot, you want to sign in Edge with a specific profile automatically.

You could try the sample code below:

from selenium import webdriver
from selenium.webdriver.edge.options import Options
from selenium.webdriver.common.by import By
import time
 
driver = webdriver.Edge()
 
edge_options = Options()
edge_options.add_argument("user-data-dir=C:\Users\username\AppData\Local\Microsoft\Edge\User Data")
edge_options.add_argument("profile-directory=Default");

driver.get('https://bing.com')
time.sleep(5000)

Also, you need to check your profile path by going to “edge://version” in the address bar.
enter image description here

3