Skip to content

Instantly share code, notes, and snippets.

@rightx2
Created November 4, 2016 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rightx2/1b36eeb4af2a6029d7bb77b99d14fc74 to your computer and use it in GitHub Desktop.
Save rightx2/1b36eeb4af2a6029d7bb77b99d14fc74 to your computer and use it in GitHub Desktop.
# 파일업로드 input이 있는지 확인한다
input_element = self.browser.find_element_by_id('id_form-0-image1')
self.assertIsNotNone(input_element)
# 이미지 파일을 업로드한다.
input_element.send_keys(os.path.dirname('/tmp/') + "/test_image.jpg")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment