clear input field selenium python code example
Example 1: jquery clear file input
//clear a file input with jQuery
$("#myFileInputID").val(null);
//clear file input in plain Javascript
document.getElementById("myFileInputID").value = null;
Example 2: python selenium clear input
driver.find_element_by_id('foo').clear()
Example 3: javascript clear file input
document.getElementById("myFileInputID").value = null;