I am trying to get some user input and also have the user upload a file at the same time. Can this be done ? I am posting my HTML file content below. The problem is enctype parameter. When set to multipart/form-data, it does not accept the usual text fields. If removed, it works.
HTML Form :
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>UI_Automation</title>
</head>
<body>
<form action = "DataBridge" method = "POST" ><!-- enctype = "multipart/form-data" -->
Select area for automation :
<select id="section" name = "section_select">
<option value = "Section1" selected>UPI</option>
<option value = "Section2">Bank</option>
</select>
Select OS Type :
<select id="os" name = "os_select">
<option value = "Android" selected>Android</option>
<option value = "iOS">iOS</option>
</select>
<!-- <h2>Upload Test cases:</h2>
Select an Excel file to upload: <br />
<input type = "file" id="testcase" name = "file" size = "50" />
<br /> -->
<input type = "submit" value = "Submit" />
</form>
</body>
</html>