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

278
Visualizações
Selenium 3.141.0 - send_keys() work fine on Windows but don't on Linux Debian 11

I try to do some web automation with Selenium.

My program was working good until I upgrade my packages - Now the send_keys() don't work on linux but it do well on Windows with the same versions.

I tried to 1 click(), 2 clear(), 3 send_keys() - copy/pasting, etc...

But none of these make the javascript input saving my send_keys(string). It do send the keys, but after he goes to next action, string has gone... And there's no error in console neither in logs.

I also tried with selenium 4.1.3 but it don't change anything...

It work perfectly under windows with/out headless, but it has stop working on Debian 11 Rolling after an update...

Please give me hint it's very important !!

Selenium version 3.141.0

Chrome version 100.0.4896.88-1

Python version 3.9.12

Kernel version 5.16.0

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Don't just find_element() to invoke send_keys(string).

Ideally, you need to induce WebDriverWait for the element_to_be_clickable() and you can use either of the following solution:

element = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "element_css")))
element.click()
element.clear()
element.send_keys("HSMKU")
about 4 years ago · Santiago Trujillo Relatório
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