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

109
Visualizações
How do I populate a field with data

I'm hoping I could get this issue resolved here. I'm trying to automate a process that involves selecting options from a list of options (by looping through each) and saving these options, simply by clicking the save button.

What I've tried so far is by using selenium to locate the tags and clicking on it using the click function. This works fine but the test site crashes on Heroku and other hosting sites I've tried due to memory issue, even on Digital Ocean.

I know I can automate this bit using Javascript but I really do not know how to search for the right article [I do know it involves using Fetch. I think] I have managed to get the API route feeding the site its data for this method.

My code so far (abridged):

for task in tasks:
     elem = driver.find_element_by_class_name('input.searchInput.keyboardInput')
                elem.click() #needs to be clicked on first 
                elem.send_keys(task)
                elem.send_keys(Keys.ENTER)

     #handle elem
#click on save button

I really just need to populate the task table with selected tasks and then save, without having to open multiple chrome instances by selenium, which is the cause of memory overload.

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