Created
November 4, 2016 01:41
-
-
Save rightx2/1b36eeb4af2a6029d7bb77b99d14fc74 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 파일업로드 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