File Upload with Selenium

Yesterday, my brother asked me: "How to automatic upload a file with Selenium". Today, i had free time to solve it.
Try this code. I used python blinding:
from selenium import webdriver
url = ""
driver = webdriver.Firefox()
element = driver.find_element_by_id("uploadname1")
Thanks for reading
Security Research
SecurityLab - Linux Lab -- Window and Cisco Lab
to be continued - I will update more.


Popular posts from this blog

Python - Multithread to read one file

An toàn thông tin ứng dụng Web

OpenCA tutorial