Python Forum
Microsoft text phone verifying account
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Microsoft text phone verifying account
#1
Hello folks,
I am not an expert, yet :), in python but have one question for you?
Until a few days ago everything worked well regarding my python script but now I do not know how to verify my (Microsoft) account via text message.
Username and password passed and then it asks me to verify the account via text message code?
Is there some solution for this?
Thank you in advance.
Below is the piece of my code, but I guess this should be refined for text message verification.

def login(driver):
    """
    Login to microsoft services in this session so we can
    navigate to other pages freely
    """
    # Open page to get authenticated
    driver.get('https://login.microsoftonline.com/')
    logging.info("Microsoft login page opened")
    time.sleep(15)
    # Find username/email input element
    username_input = driver.find_element_by_id("i0116")
    # Enter email and press enter
    username_input.send_keys(EMAIL)
    username_input.send_keys(Keys.ENTER)
    logging.info("Email entered to login form")
    time.sleep(15)
    # Get password field, enter pwd and press enter to log in
    password_input = driver.find_element_by_id("i0118")
    password_input.send_keys(PASSWORD)
    logging.info("Password entered to login form")
    password_input.send_keys(Keys.ENTER)
    logging.info("Form submitted")    
    time.sleep(15)
Reply


Messages In This Thread
Microsoft text phone verifying account - by cito - Jul-21-2022, 09:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  error : "Microsoft Visual C++ 14.0 is required. " Even its installed Barak 4 4,094 Oct-13-2021, 10:39 PM
Last Post: Underscore
  Send SMS from my phone number aster 3 2,772 Jul-03-2021, 02:34 PM
Last Post: ndc85430
  Creating Excel files compatible with microsoft access vkallavi 0 1,614 Sep-17-2020, 06:57 PM
Last Post: vkallavi
  lists Name Address Phone Heyjoe 2 1,813 Jun-21-2020, 10:47 AM
Last Post: Heyjoe
  Authentication error when accessing Microsoft SharePoint klllmmm 3 10,477 Jun-10-2020, 07:46 AM
Last Post: nuffink
  Access phone via Bluetooth maxwell 2 2,324 Jun-03-2020, 05:22 PM
Last Post: maxwell
  Phone numbers ovidius80 2 2,088 Mar-12-2020, 07:08 PM
Last Post: Larz60+
  Different results of code with local account and technical account dreyz64 7 3,747 Mar-05-2020, 11:50 AM
Last Post: dreyz64
  Trying to install Pyquil, says I need Microsoft Visual C++ Groucho 10 5,072 Feb-18-2020, 05:46 PM
Last Post: snippsat
  2 Microsoft word Docx content comparison vintysaw 2 5,833 Oct-17-2019, 10:41 AM
Last Post: vintysaw

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020