Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

130
Visualizações
Triggering save draft from dev tools console on outlook web app

I am trying to trigger the Save Draft function on outlook.com from the browser dev tools console (Later will be used in an userscript).

The issue is that the button doesn't exist until you click the three dots on top of the "New message" form. With the dots clicked and the extra options opened I can run:

Array.from(document.querySelectorAll('button')).find(el => el.textContent === 'Save draft').click()

On the dev tools console, and it works fine. But with the menu closed it doesn't work because the button doesn't exist.

I tried inspecting the element click event, but it seems to be using React (which I know nothing about) and points to an empty function.

Is there a way I could trigger the save draft function directly without having to click the button?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda