Skip to content
CodeKruPro

Uploading a file when the browser runs on Grid (Python)

QuizMedium-HardPython onlyAsked in: Accenture, Capgemini, Infosys, TCS

The test runs with webdriver.Remote against Selenium Grid and sends a local file path to a file input. What happens?

  • It works: webdriver.Remote uses a LocalFileDetector by default, so the file is sent to the node
  • It fails until you copy the file to every node by hand
  • Uploads are impossible on Grid
  • You must click the input and type the path into the dialog

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in