1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] throw WebDriverException when using selenium webdriver to upload file

Discussão em 'Python' iniciado por Stack, Setembro 17, 2025.

  1. Stack

    Stack Membro Participativo

    I want to upload file using the following python code:

    driver.find_element_by_id("fileFieldName-file").send_keys("D:\\manual.pdf")


    the code works fine in Firefox, but it fails in IE and Chrome. The exception is as follows:

    WebDriverException: Message: '{ "status" : 404, "sessionId" : "<no session>", "value" : "Command not found: POST /session/e56793e2-79f9-4bb9-820e-91090ccee083/file" }'

    Continue reading...

Compartilhe esta Página